soulmaka
New Member
- Reaction score
- 2
i have this code below, which when i cast the skill, the units pause permanently.. how can i make that they will only be temporarily paused?
btw: here's the code
btw: here's the code
Code:
Time Hatcher
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Time Hatcher
Actions
Unit Group - Pick every unit in (Units within 1000.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Unit-type of (Picked unit)) Not equal to Saturn Caster |cffff00ff[Witch]
Then - Actions
Set Time_Hatcher_PU = (Picked unit)
Special Effect - Create a special effect at (Position of Time_Hatcher_PU) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Unit - Pause Time_Hatcher_PU
Else - Actions
Wait (Real((Level of Time Hatcher for (Triggering unit)))) seconds
Unit Group - Pick every unit in (Units within 1000.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
((Picked unit) is paused) Equal to True
(Unit-type of (Picked unit)) Not equal to Saturn Caster |cffff00ff[Witch]
(Picked unit) Equal to Time_Hatcher_PU
Then - Actions
Unit - Unpause Time_Hatcher_PU
Else - Actions