- Joined
- Jun 29, 2004
- Messages
- 64
i want it so that when a player leaves, his units change control, but i want it so they only change control to his allies that are still playing the game, because sometimes it is changing it to his allies that have left the game already, and sometimes it doesnt change control all all..
this is my code
Unit Group - Pick every unit in (Units owned by nextpersondoom) and do (If (((Random player from (All allies of (Triggering player))) slot status) Equal to Is playing) then do (Unit - Change ownership of (Picked unit) to (Matching player) and Change color) else do (Do nothing))
tell me what is wrong please.
this is my code
Unit Group - Pick every unit in (Units owned by nextpersondoom) and do (If (((Random player from (All allies of (Triggering player))) slot status) Equal to Is playing) then do (Unit - Change ownership of (Picked unit) to (Matching player) and Change color) else do (Do nothing))
tell me what is wrong please.