shiFt
Member
- Reaction score
- 8
How would i send a projectile to a target unit then hid ethe caster, then wait until the projectile hits the target unit for the caster to be revealed again? wait for condition? timers, iv never used them?
e: every 0.03 seconds of game time
c:
a: set dummy_point = position of "your dummy"
set move_point = dummy_point offset by 50 towards facing of "your dummy" degrees
move "your dummy" to move point
set real_count = real_count + 50
set impact_group = units within 50 of dummy_point matching (matching unit belongs to an enemy of owner of "the dummy")
pick every unit in impact_group and to actions
set picked_pos = position of picked unit
if then else
if distance between dummy_point and picked_pos less than or equal to 50
remove "dummy" from the game
"do whatever you want with the unit"
call RemoveLocation(udg_picked_pos)
if real_count greater than or equal to (whatever)
remove the "dummy" from game
call RemoveLocation(udg_dummy_point)
call RemoveLocation(udg_move_point)