Hi guys. I'm making a multiplayer co-op mission. (Yes, it's a conversion of Village De-Pacification). What I want to do is set up a cutscene in which certain players do certain scripted things. These players must be alive. Some players may not be, because this cutscene will take place just before the debriefing (there is no respawn in this mission).
In singleplayer, I would do something like this:
starofshow = (units mainloons) select 0
starofshow setBehaviour "SAFE"
starofshow setpos [getpos object 90193 select 0, (getpos object 90193 select 1) + 20]
Et cetera, blah blah blah. I would do all sorts of things with "starofshow," and he would have to be alive, otherwise he couldn't be selected from the array "units mainloons." (mainloons is the name of a group).
Question: will this work in multiplayer? Will the "units" array contain any dead people? In singleplayer, it will not.
But I noticed that the "leader" command works differently in MP. It's the original leader of the group, and as such, it may return a dead unit. This feature is probably related to respawn. If so, it's also quite likely that
(units mainloons) select 0
may select a dead person.
Does anyone know how the units command behaves in multiplayer? I'd rather know beforehand, because multiplayer beta testing is so much more difficult.
If it doesn't work, does anyone know of another method for getting what I'm looking for?