• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] how do i trigger this spell out (low difficulty)

Status
Not open for further replies.
Level 9
Joined
Jan 14, 2008
Messages
366
so basically this is what i want:

a spell that launches a projectile, that travels a certain distance and then vanishes. upon contact with enemy units, the unit is "frozen" by a stun and pause-unit combination.

this is what i worked out:

i use a dummy unit for the projectile, giving it the locust ability. the basics of the spell are not difficult to figure out.

what i dont know is how to detect when a unit comes close enough to the projectile (dummy-projectile-unit)

anyone can help me out ?
 
Level 9
Joined
Jan 14, 2008
Messages
366
ok its actually the only way i think.

but when pausing a unit, to emulate "freeze", how do i set the unit to unpause after say 2 seconds, without having to store the unit in an variable?
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
I think storing it in a unit group, and every 0.5 secs, if the group is not empty, set the custom value, and when that is 4 (4 x 0.5 = 2,, easy:grin:) unpause?
Only way i could think of now
 
Status
Not open for further replies.
Top