Let's assume that I create a map for 4 players with preplaced units. 2 players joined the game and creator run it. How to remove units for players 3-4? I suppose that units are given to P12. In Classic Trigedit aviable in SCM Draft there is no P12 but if I place "Player 12" in Trigger Editor then I see "Neutral" in that place. So I assume P12 = Neutral in SCM Draft. So what is the difference between "Neutral" and "Neutral players" in that case? Anyways using both kill all men for Neutral and kill all men for Neutral players triggers gives no effect. What should I do?
Assuming already but isnt there 3 players in the game. The host and the 2 players? And also I dont see why you would remove units and give them to P-12 because P-12 is neutal.
Post whatever map or problem it is for easier refrence.
I just want to know how to remove units of uncontrolled players (players that didn't join the game, whose slots at start screen remained "open" while creator started the game). Don't know how to put it simplier. Maybe I'm not right, mayby that units aren't given to P12, it's only my presumption.
ADDITION:
Yeah, you right. I mean: one player joined the game. Now they are in number of two
.
Hmm... Yeah, you're right. Actually my problem is that I need to spawn units for players by triggers, and that triggers are running for every player because I can't know how many players will be in game. Sorry for asking to assume replacement, I thought it will be easier to say.
Preplaced units for players that don't exist are not created, and units owned by players that leave the game are given to Player 12. You can target Player 12 in your actions by using a more advanced trigger editor, such as Starforge.
Units created by triggers for players that don't exist will be created as neutral hostile, owned by the unused player.
If you need to try to avoid creating players that don't exist, run the creation trigger for a force and use "Current Player".
QUOTE(DT_Battlekruser @ Sep 17 2006, 06:51 PM)
Preplaced units for players that don't exist and units owned by players that leave the game are given to Player 12. You can target Player 12 in your actions by using a more advanced trigger editor, such as Starforge.
Units created by triggers for players that don't exist will be created as neutral hostile, owned by the unused player.
If you need to try to avoid creating players that don't exist, run the creation trigger for a force and use "Current Player".
[right][snapback]562403[/snapback][/right]
Excuse me? Preplaced units for players that don't join the game never show up.
Oops Preplaced units will only appear if that player is present, and for spawning triggers, just make it so the player actually has to run the trigger and have that player do "create units for current player." That way, the trigger only runs if the player is present.
Ok, I'll try to do as you said. Thanks
.
QUOTE(fritfrat(U))
Preplaced units will only appear if that player is present
Preplaced unit sprites appear in the game regardless of whether the player who owns them is in the game or not.