I have eight playable soldier: p1,p2...p7,p8.
It's really important to me how many of them is exits in the mission. Players can disable units in multiplayer dialog, before start the mission and I must know which of them exits. I tried
if (p1 != objNull) then
but it rise an exception if p1 not exists to p1 is unknown variable.
What can I do?
Why I need to know?
1. In the init script I armed an unarmed soldier (p7), but I don't want to do that if he is not play.
2. These players have to meet and join to a squad and I need a trigger to detect when all of them is ready in the squad. If all are in play, it's easy. But if the players decided to turn of one of them, how can I check the squad is full or they need to find anybody else?
3. These players can select weapons in the briefing, but in the beginning of the mission I remove all of these and put it in different containers (two persons' equipment in each container) and I have to remove the unused containers.