- Joined
- Mar 27, 2008
- Messages
- 8,035
If a trigger consist of this particular line (Event - Periodic Timer), how would the leaks be cleaned ?
Look trigger below for example:
How can I move the unit per 0.1 second AND clean those leaks ?
EDIT:
OH I almost forgot !
The trigger works like this:
The ball will pull every picked unit per 0.1 second for 10 range/units
Look trigger below for example:
-
Kinetic Ball Loop
-
Events
-
Time - Every 0.10 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(KineticBall is alive) Equal to True
-
-
Then - Actions
-
Unit Group - Pick every unit in AOE and do (Actions)
-
Loop - Actions
-
Set PickedLoc = (Position of (Picked unit))
-
Set Distance = (Integer(((Distance between KineticBallLoc and PickedLoc) - 10.00)))
-
Unit - Move (Picked unit) instantly to (KineticBallLoc offset by (Real(Distance)) towards (Angle from KineticBallLoc to PickedLoc) degrees)
-
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Orc\LightningShield\LightningShieldBuff.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
-
-
Else - Actions
-
Trigger - Turn off (This trigger)
-
-
-
-
-
Custom script: call RemoveLocation(udg_PickedLoc)
-
Custom script: call RemoveLocation(udg_KineticBallLoc)
-
Custom script: call DestroyGroup(udg_AOE)
How can I move the unit per 0.1 second AND clean those leaks ?
EDIT:
OH I almost forgot !
The trigger works like this:
The ball will pull every picked unit per 0.1 second for 10 range/units