a3_exile_occupation/scripts/eventHandlers/staticUnitMPKilled.sqf
2016-05-12 13:44:47 +01:00

17 lines
454 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];
if(SC_mapMarkers) then
{
deleteMarker format ["%1", _staticUID];
};
};