- Joined
- Jun 11, 2010
- Messages
- 1
Hello, my problem is pretty hard and I need your help. I would like to make a trigger that can "slide" units called Dynamites. There can be about 10 Dynamites at once, so the trigger must not be so heavy to move the dynamites.
The second problem is: I want a trigger that checks if there's units or trees close of "sliding" Dynamite, if is: the dynamite exploses and kills trees/units.
Here's my sliding trigger:
Please in GUI, but you can create it in Jass or in vJass...
Thanks!
The second problem is: I want a trigger that checks if there's units or trees close of "sliding" Dynamite, if is: the dynamite exploses and kills trees/units.
Here's my sliding trigger:
-
This is so heavy
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Set Dynamites = (Units of type Dynamite)
-
Unit Group - Pick every unit in Dynamites and do (Actions)
-
Loop - Actions
-
Set Points[1] = (Position of (Picked unit))
-
Set Points[2] = (Points[1] offset by 10.00 towards (Facing of (Picked unit)) degrees)
-
Unit - Move (Picked unit) instantly to Points[2]
-
-
-
-
-
TNT Hits
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Set TNTHitsGroup = (Units within 90.00 of Points[1] matching (((Owner of (Matching unit)) controller) Equal to User))
-
Unit Group - Pick every unit in TNTHitsGroup and do (Unit - Kill (Picked unit))
-
Destructible - Pick every destructible within 90.00 of Points[1] and do (Actions)
-
Loop - Actions
-
Destructible - Kill (Picked destructible)
-
-
-
-
Please in GUI, but you can create it in Jass or in vJass...

Thanks!
Last edited: