Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] Removing useless units
Report, edit, etc...Posted by DooM77 on 2006-09-17 at 09:16:50
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?
Report, edit, etc...Posted by JordanN_3335 on 2006-09-17 at 09:23:11
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.
Report, edit, etc...Posted by DooM77 on 2006-09-17 at 09:29:58
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 smile.gif.
Report, edit, etc...Posted by DooM77 on 2006-09-17 at 09:50:59
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.
Report, edit, etc...Posted by DT_Battlekruser on 2006-09-17 at 11:51:33
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".
Report, edit, etc...Posted by Gigins on 2006-09-17 at 11:59:02
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. sly.gif
Report, edit, etc...Posted by DT_Battlekruser on 2006-09-17 at 12:02:54
Oops tongue.gif
Report, edit, etc...Posted by fritfrat(U) on 2006-09-17 at 12:28:01
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.
Report, edit, etc...Posted by DooM77 on 2006-09-18 at 13:39:06
Ok, I'll try to do as you said. Thanks smile.gif.
Report, edit, etc...Posted by Kenoli on 2006-09-18 at 18:52:34
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.
Next Page (1)