// check_civs_damage.sqf
_civs = [Z1,Z2,Z3,Z4,Z5,Z6,Z7,Z8,Z9,Z10,Z11,Z12,Z13,Z14,Z15,Z16,Z17,Z18,Z19,Z20,Z21,Z22,Z23,Z24,Z25,Z26,Z27,Z28,Z29];
_remove = [];
while {(count _civs > 0) && (alive player)} do
{
for {[_i=0],[_i < count _civs],[_i = _i + 1]} do
{
if (! alive (_civs select _i)) then
{
_remove = _remove + [_civs select _i];
player setDamage ((damage player) + 0.1);
};
};
_civs = _civs - _remove;
Sleep 2;
};
and into the init.sqs of your mission:
[]execVM "check_civs_damage.sqf";