Does anyone know how to make it so if the player is not present in a game, the enemy units will not spawn his area? i'm trying to make a defense map btw O_O
I'm thinking you could do this
Conditions
Player 1 brings exactly 0 units to Player 1's Area
Actions
Disable Switch 'Player 1 Spawn'
Would that work?
Have the players run the spawn triggers. That way if a player isn't present, the trigger can't run.
Ooh yeah, that'd be way better than my idea either one works, but yea, the spawn one is definatly the one you should use.
QUOTE
Have the players run the spawn triggers. That way if a player isn't present, the trigger can't run.
I though only preplaced units for not present players and Current Player triggers dont show/run.
All triggers run under that player cannot run and your right about the pre- placed units part.
In other words, if you have the trigger in another player's section and tell it to create 1 unit for the missing player it will create a 'ghost unit' which will be enemies with everyone.
If you put triggers in a players section and they aren't there then the triggers in their section don't run, any of them. So never just put side triggers like telling computer units to patrol around in a human slot, since there is a chance they won't be there so it won't work. Always put that kind of trigger in a computer force and if you want the trigger to dissappear if the player isn't there put it in their section, also, ghost units will be created and things like that if you put it a force section instead of checking all the players for that force's boxes.
Um, falk, he's talking about creating units for the computer, not for the players. Also, for the players that the trigger runs under, clicking force 1 and every player for force 1 is exactly the same. It only makes a difference when you do "create units for force 1" compared to "create units for player 1, 2, 3.." in that creating units for "force 1" does not make the units for players not present.
But ya, on topic, I'd also recommend just having the triggers to create the enemy units just under the players' triggers.