D
dArKzEr0
Guest
Hi, I'm trying to make a trigger where when a unit is selected, it will ping the map where all enemy units are located once every 45 seconds, but the trigger isn't working. Here it is:
Anybody see the problem?
I'm assuming it has something to do with my event, condition, or the "if" in my if/then, because absolutely nothing happens when I select the unit "Anti-camp".
dArKz
Code:
GPSPing
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Player - Player 3 (Teal) Selects a unit
Player - Player 4 (Purple) Selects a unit
Player - Player 5 (Yellow) Selects a unit
Player - Player 6 (Orange) Selects a unit
Player - Player 7 (Green) Selects a unit
Player - Player 8 (Pink) Selects a unit
Player - Player 9 (Gray) Selects a unit
Player - Player 10 (Light Blue) Selects a unit
Player - Player 11 (Dark Green) Selects a unit
Player - Player 12 (Brown) Selects a unit
Conditions
(Unit-type of (First unit of group (Units currently selected by (Triggering player)))) Equal to Anti-Camp
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Remaining time for Satellite_Timer[(Player number of (Triggering player))]) Less than or equal to 0.01
Then - Actions
Player Group - Pick every player in (All enemies of (Triggering player)) and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Elite Sniper
Then - Actions
Set Satellite_Timer[(Player number of (Triggering player))] = (Create a periodic One-shot timer lasting 45.00)
Cinematic - Ping minimap for (All allies of (Triggering player)) at (Position of (Picked unit)) for 1.00 seconds, using a Simple ping of color (100.00%, 10.00%, 10.00%)
Else - Actions
Do nothing
Else - Actions
Game - Display to (Triggering player), at offset (0.00, 0.00) the text: Satellite Tracking ...
Anybody see the problem?
I'm assuming it has something to do with my event, condition, or the "if" in my if/then, because absolutely nothing happens when I select the unit "Anti-camp".
dArKz


