- Joined
- Oct 12, 2004
- Messages
- 109
I'm trying to make it so when a unit enters a region it stops, checks to see if a unit is in region A. If there is a unit in region A then it is ordered to move to region B. If no unit is in region A then it is ordered to move to region A. When i use this trigger the unit moves to region A no matter what. Even if there is a unit in region A already. Any help is appreciated!
-
Events
- Unit - A unit enters BankEnter <gen>
-
Conditions
- (Owner of (Entering unit)) Not equal to Player 11 (Dark Green)
- ((Unit-type of (Triggering unit)) Equal to SUV) or ((Unit-type of (Triggering unit)) Equal to Motorcycle)
-
Actions
- Set CityPlayer = (Player group((Owner of (Entering unit))))
- Unit - Order (Entering unit) to Stop
- Cinematic - Disable user control for (Player group((Owner of (Entering unit))))
- Wait 1.50 game-time seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in (Units in Bankpark1 <gen> owned by Player 11 (Dark Green))) Equal to 1
-
Then - Actions
- Unit - Order (Entering unit) to Move To (Center of BankPark2 <gen>)
- Game - Display to CityPlayer for 10.00 seconds the text: You have to park in...
- Cinematic - Enable user control for (Player group((Owner of (Entering unit))))
-
Else - Actions
- Unit - Order (Entering unit) to Move To (Center of Bankpark1 <gen>)
- Game - Display to CityPlayer for 10.00 seconds the text: You have to park in...
- Cinematic - Enable user control for (Player group((Owner of (Entering unit))))
-
If - Conditions