- Joined
- Apr 13, 2012
- Messages
- 110
-
hideskill
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Hide
-
-
Actions
-
Destructible - Pick every destructible in (Playable map area) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Destructible-type of (Picked destructible)) Equal to Ashenvale Canopy Tree
-
-
Then - Actions
-
Set hidingdestru = (Position of (Picked destructible))
-
Set aroundtrees = (Units within 200.00 of hidingdestru)
-
Unit Group - Pick every unit in aroundtrees and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Picked unit) Equal to (Casting unit)
-
-
Then - Actions
-
Set hidingunit = (Position of (Casting unit))
-
Set aroundhidingunit = (Units within 150.00 of hidingunit)
-
Unit Group - Pick every unit in aroundhidingunit and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) belongs to an enemy of Player 2 (Blue)) Equal to True
-
-
Then - Actions
-
Do nothing
-
-
Else - Actions
-
Unit - Pause (Casting unit)
-
Unit - Make (Casting unit) Invulnerable
-
Wait 1.00 seconds
-
Unit - Make (Casting unit) Vulnerable
-
Unit - Unpause (Casting unit)
-
-
-
-
-
Custom script: call RemoveLocation(udg_hidingunit)
-
Custom script: call DestroyGroup (udg_aroundhidingunit)
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_hidingdestru)
-
Custom script: call DestroyGroup (udg_aroundtrees)
-
-
Else - Actions
-
-
-
-
-
when i pause the unit and make it invulnerable its all ok
but when its the time to unpause and make the unit vunerable its just doesn't
it seems to me the wait action is causing this problem to the trigger
cause when i remove wait it works fine.
Last edited: