I currently have triggers set to spawn units for all players upon map initialization and on a 30 second timer. What i need to be able to do is have a way to stop those triggers from running if the player is not present. Any help would be greatly appreciated as this is kind of a major stonewall for my map.
Ive looked through it but i cant seem to find it, but yea preset, i don't want the trigger to fire unless the player is present. So having a condition to add to the current triggers sounds about right but i haven't been able to find it.
I currently have triggers set to spawn units for all players upon map initialization and on a 30 second timer. What i need to be able to do is have a way to stop those triggers from running if the player is not present. Any help would be greatly appreciated as this is kind of a major stonewall for my map.
There are two ways you can solve this problem:
1. Create a trigger that turns off the spawning trigger of a player that leaves.
I currently have triggers set to spawn units for all players upon map initialization and on a 30 second timer. What i need to be able to do is have a way to stop those triggers from running if the player is not present. Any help would be greatly appreciated as this is kind of a major stonewall for my map.
Present as in-game? So u need to set a condition. To see if player X is "Active" or something like that i think.
Ive looked through it but i cant seem to find it, but yea preset, i don't want the trigger to fire unless the player is present. So having a condition to add to the current triggers sounds about right but i haven't been able to find it.
@Tekaichi: Go
Lol better way to do that. "Pick each player in "Active" players group and do actions.." that would work i think.
@Tekaichi: Go
Lost me there....
@fattestcat:
create a new action and search for "pick players in player group". change the player group to active players
then under that create an action "create units for (player) at point"
change (player) to "picked player"
picked player returns the "pick players in player group" hence "picked" player
this will create units for all of the players that are active.
condition: players x is playing
There are two ways you can solve this problem:
1. Create a trigger that turns off the spawning trigger of a player that leaves.
2. Use an If/Then/Else action to check if the player is in the game.
The condition is a "Comparison". Players -> Status of Player
@SentryIII: Go
Thank you all for the help, SentryIII perfect solution.