soulmaka
New Member
- Reaction score
- 2
ok.. i have this two trigger codes,
everytime i casts the ability, only ONE UNIT moves, not all the units near the triggering unit.. O_O
even though there's no variable, it still wont work.. :banghead:
Here's the first code:
and the 2nd one:
tnx in advance,. +rep if solved..
everytime i casts the ability, only ONE UNIT moves, not all the units near the triggering unit.. O_O
even though there's no variable, it still wont work.. :banghead:
Here's the first code:
Code:
Force Push
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Force Push
Actions
Set Force_Push_POTU = (Position of (Triggering unit))
Unit Group - Pick every unit in (Units within 1000.00 of Force_Push_POTU) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to False
(Unit-type of (Picked unit)) Not equal to Saturn Caster |cffff00ff[Witch]
Then - Actions
Set Force_Push_UGN = (Number of units in (Units within 1000.00 of (Position of (Triggering unit))))
Set Force_Push_PU[Force_Push_UGN] = (Picked unit)
Trigger - Turn on Force Push Moving <gen>
Wait 2.00 seconds
Trigger - Turn off Force Push Moving <gen>
Else - Actions
Code:
Force Push Moving
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Unit - Move Force_Push_PU[Force_Push_UGN] instantly to ((Position of Force_Push_PU[Force_Push_UGN]) offset by 30.00 towards (180.00 - (Facing of Force_Push_PU[Force_Push_UGN])) degrees)
Special Effect - Create a special effect at (Position of Force_Push_PUWOA) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl