Staredit Network

Staredit Network -> UMS Assistance -> A Small Question
Report, edit, etc...Posted by EnViZ on 2006-10-29 at 19:26:10
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
Report, edit, etc...Posted by NerdyTerdy on 2006-10-29 at 19:30:05
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?
Report, edit, etc...Posted by Urmom(U) on 2006-10-29 at 20:04:37
Have the players run the spawn triggers. That way if a player isn't present, the trigger can't run.
Report, edit, etc...Posted by NerdyTerdy on 2006-10-29 at 20:49:35
Ooh yeah, that'd be way better than my idea tongue.gif
Report, edit, etc...Posted by Lord-Omega on 2006-10-31 at 10:54:32
either one works, but yea, the spawn one is definatly the one you should use.
Report, edit, etc...Posted by DooM77 on 2006-10-31 at 17:28:51
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.
Report, edit, etc...Posted by Urmom(U) on 2006-10-31 at 21:02:30
All triggers run under that player cannot run and your right about the pre- placed units part.
Report, edit, etc...Posted by Falkoner on 2006-10-31 at 23:22:14
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.
Report, edit, etc...Posted by fritfrat(U) on 2006-11-01 at 16:06:53
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.
Next Page (1)