rakowozz 14 Posted September 24, 2013 So, my mission has four different squads. And I'd like to enforce every squad to have a leader. As if a squad's not available unless there's a squad leader at the beginning (I want to do this for a number of reasons, but mostly because of the slot specific loadouts and the role the equipment has). I tried checking if the squad leader's present if any of the other slots in the squad are taken, using "alive", but then it'd abort the mission in case the SL dies during combat. Since it's late in the night and I can't seem to get any sleep, I ran out of useful, not vastly complex ideas :icon_lol: Can I expire this verification, so it only verifies at the beginning of the mission? Any help would be much appreciated, thanks in advance Share this post Link to post Share on other sites
kylania 568 Posted September 24, 2013 Put "required" in the description field of your squad leaders. Put a note saying "squad leaders have mission critical equipment" in your mission description. Then don't worry about who is playing what and let the player play the mission however they want even if they end up not having some specific bit of kit. People will rarely play a mission exactly how you imagined and that's perfectly okay. Share this post Link to post Share on other sites
Pac Man 10 Posted September 24, 2013 I tried checking if the squad leader's present if any of the other slots in the squad are taken, using "alive", but then it'd abort the mission in case the SL dies during combat. Can I expire this verification, so it only verifies at the beginning of the mission? Any help would be much appreciated, thanks in advance You could try something like this (untested): init.sqf If (IsNil "Leader_Check") Then { Leader_Check=1; PublicVariable "Leader_Check"; If ((time < 10) && (isNil "leader_name")) Then {["Please select the leader",false,2] call BIS_fnc_endMission;}; }; Share this post Link to post Share on other sites
rakowozz 14 Posted September 24, 2013 Thanks for the help and tips, guys! Seems to be working, here's how I put it there: If (IsNil "Leader_Check") Then { Leader_Check=1; PublicVariable "Leader_Check"; If ({alive _x} count [p2,p3,p4,p5,p6,p7,p8] > 0 && (time < 10) && (isNil "p1")) Then {["end5",false,2] call BIS_fnc_endMission;}; }; And the same for other squads Share this post Link to post Share on other sites
Tajin 349 Posted September 25, 2013 Why dont you use "isPlayer" instead of "alive"? https://community.bistudio.com/wiki/isPlayer Share this post Link to post Share on other sites