a3_exile_occupation/scripts/reactions/staticUnitMPKilled.sqf
2016-04-27 11:09:01 +01:00

13 lines
364 B
Plaintext

// Get the variables from the event handler
_unit = _this select 0;
_staticUID = _unit getVariable "SC_staticUID";
_spawnPosition = _unit getVariable "SC_staticSpawnPos";
_unit removeAllMPEventHandlers "mphit";
_group = group _unit;
if((count (units _group)) == 0) then
{
SC_liveStaticGroups = SC_liveStaticGroups - [_staticUID,_spawnPosition];
};