- Joined
- Aug 21, 2009
- Messages
- 408
Ok. So im making a trigger were if you select a unit it creates one for you.
Here it is:
I need help with this:
NOTE: The variable 'HasChoseACar' has already been set to false.
Here it is:
- Unit - Siege Engine 0001 <gen> Is selected
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering player) Equal to Player 1 (Red)
- HasChoseACar[1] Equal to False
-
Then - Actions
- Unit - Create 1 Siege Engine for Player 1 (Red) at (Center of Create car red <gen>) facing Default building facing degrees
- Unit - Make (Last created unit) face (Center of face direction red <gen>) over 0.00 seconds
- Selection - Select (Last created unit) for Player 1 (Red)
- Set race_car[1] = (Last created unit)
- Set acceleration[1] = 12
- Set Handeling[1] = 8
- Set HasChoseACar[1] = True
- Camera - Set (Triggering player)'s camera Rotation to (Facing of race_car[1]) over 0.11 seconds
- Camera - Pan camera for (Triggering player) to (Position of race_car[1]) over 0.11 seconds
- Sound - Play Rescue <gen>
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering player) Equal to Player 2 (Blue)
- HasChoseACar[2] Equal to False
-
Then - Actions
- Unit - Create 1 Siege Engine for Player 2 (Blue) at (Center of Create car blue <gen>) facing Default building facing degrees
- Unit - Make (Last created unit) face (Center of face direction blue <gen>) over 0.00 seconds
- Selection - Select (Last created unit) for Player 2 (Blue)
- Set race_car[2] = (Last created unit)
- Set acceleration[2] = 12
- Set Handeling[2] = 8
- Set HasChoseACar[2] = True
- Camera - Set (Triggering player)'s camera Rotation to (Facing of race_car[2]) over 0.11 seconds
- Camera - Pan camera for (Triggering player) to (Position of race_car[2]) over 0.11 seconds
- Sound - Play Rescue <gen>
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering player) Equal to Player 3 (Teal)
- HasChoseACar[3] Equal to False
-
Then - Actions
- Unit - Create 1 Siege Engine for Player 3 (Teal) at (Center of Create car teal <gen>) facing Default building facing degrees
- Unit - Make (Last created unit) face (Center of face direction teal <gen>) over 0.00 seconds
- Selection - Select (Last created unit) for Player 3 (Teal)
- Set race_car[3] = (Last created unit)
- Set acceleration[3] = 12
- Set Handeling[3] = 8
- Set HasChoseACar[3] = True
- Camera - Set (Triggering player)'s camera Rotation to (Facing of race_car[3]) over 0.11 seconds
- Camera - Pan camera for (Triggering player) to (Position of race_car[3]) over 0.11 seconds
- Sound - Play Rescue <gen>
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
I need help with this:
- Unit - Siege Engine 0001 <gen> Is selected
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering player) Equal to Player 1 (Red)
- HasChoseACar[1] Equal to False
-
Then - Actions
- Unit - Create 1 Siege Engine for Player 1 (Red) at (Center of Create car red <gen>) facing Default building facing degrees
-
If - Conditions
NOTE: The variable 'HasChoseACar' has already been set to false.