- Joined
- Aug 7, 2011
- Messages
- 1,638
Ok... I've got a problem with the condition, the trigger is kinda simple. I've made the play board of the chess game to be with units, Square - White, Square - Black. Making the unit move to a square is easy, just click on it, but how to make it not move on squares which have other units in 90 range around them? Here's the trigger:
Please Help
- Events: A unit is issued an order targeting an object (The white or black square)
- Conditions: (All units (Units within 90 of (Position of (Target unit of issued order)) matching ((Owner of Matching unit)) Equal to Player 1 Red are in (Rect centered at (Position of (Target unit of issued order)) with size (90, 90))
- Actions: Unit - Set (Ordered unit) movement speed to 0.00
- Wait 0.01 seconds
- Unit - Order (Ordered unit) to Stop
- Unit - Set (Ordered unit) movement speed to (Default movement speed of (Ordered unit))
Please Help