There is a simple way to do it. each playable unit must have a squad name yoursquadnam=group this in their init & a trigger that ends the mission when every player is down. Hospital visit has it all in. unpbo it & have a look.
Trigger script is
CONDITION{alive _x} count playableUnits == {captive _x} count playableUnits;
ON ACT
"end1" call BIS_fnc_endMission; _failedtask = [1]Â Â Â or how ever many tasks there are.
Trigger script is
CONDITION{alive _x} count playableUnits == {captive _x} count playableUnits;
ON ACT
"end1" call BIS_fnc_endMission; _failedtask = [1]Â Â Â or how ever many tasks there are.