- Joined
- Jul 3, 2004
- Messages
- 404
well, i want unit A to attack unit B through a trigger, but, the unit only walks down to it and turns away.
This unit A is a Mortar Team, and i want him to use the ranged Mortar Missile. i have no idea what i am doing wrong.
These units he is supposed to attack are dummies that are Paused and hided through a trigger, also added to a Unit Group variable
(Ini trigger)
Crazy Shooting Trigger
This unit A is a Mortar Team, and i want him to use the ranged Mortar Missile. i have no idea what i am doing wrong.
These units he is supposed to attack are dummies that are Paused and hided through a trigger, also added to a Unit Group variable
(Ini trigger)
-
TCB Boss Ini
-
Events
- Map initialization
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units of type TCB Target Dummy) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to TCB_Target_Dummy
- Unit - Hide (Picked unit)
- Unit - Pause (Picked unit)
-
Loop - Actions
- Trigger - Run Crazy Shooting <gen> (ignoring conditions)
-
Unit Group - Pick every unit in (Units of type TCB Target Dummy) and do (Actions)
-
Events
Crazy Shooting Trigger
-
Crazy Shooting
- Events
- Conditions
-
Actions
- Trigger - Turn on Explosive Damage <gen>
- Unit - Order Mortar Team 0011 <gen> to Attack Once (Random unit from TCB_Target_Dummy)
- Set TCB_Crazy_Shooting[1] = (TCB_Crazy_Shooting[1] + 1)
- Wait 2.50 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- TCB_Crazy_Shooting[1] Equal to 9
-
Then - Actions
- Trigger - Turn off (This trigger)
-
Else - Actions
- Trigger - Run Crazy Shooting <gen> (ignoring conditions)
- Wait 0.10 seconds
- Special Effect - Destroy (Last created special effect)
-
If - Conditions
Last edited: