- Joined
- May 26, 2009
- Messages
- 760
Greetings,
I want a trigger that triggers when I order a unit to move to (right-click) a unit owned by player 12 (brown). I want nothing to happen if only the ground is clicked.
My trigger won't stop the unit, the unit will move to the right-clicked unit no matter what. I have tried to Stop a specific pre-chosen unit already placed on the map but that doesn't work either.
I want a trigger that triggers when I order a unit to move to (right-click) a unit owned by player 12 (brown). I want nothing to happen if only the ground is clicked.
-
RightClick
-
Events
-
Unit - A unit Is issued an order targeting an object
-
-
Conditions
-
(Owner of (Target unit of issued order)) Equal to Player 12 (Brown)
-
-
Actions
-
Set Index = (Player number of (Owner of (Ordered unit)))
-
Unit - Order Rifleman[Index] to Stop
-
Unit - Make Rifleman[Index] face Loc over 0.00 seconds
-
Animation - Play Rifleman[Index]'s attack animation
-
Set Loc = (Position of (Target unit of issued order))
-
Special Effect - Create a special effect at Loc using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-
Custom script: call RemoveLocation(udg_Loc)
-
-