a3_exile_occupation/scripts/eventHandlers/vehicleDestroyed.sqf

24 lines
636 B
Plaintext
Raw Normal View History

2016-05-03 10:15:03 +00:00
_vehicle = _this select 0;
_vehicle removeAllMPEventHandlers "mphit";
2016-07-26 15:40:38 +00:00
//_vehicle removeAllMPEventHandlers "mpkilled";
_vehicle removeAllEventHandlers "getin";
_vehicle removeAllEventHandlers "getout";
2016-05-03 10:15:03 +00:00
if(_vehicle isKindOf "LandVehicle") then
{
SC_liveVehicles = SC_liveVehicles - 1;
SC_liveVehiclesArray = SC_liveVehiclesArray - [_vehicle];
};
if(_vehicle isKindOf "Air") then
{
SC_liveHelis = SC_liveHelis - 1;
SC_liveHelisArray = SC_liveHelisArray - [_vehicle];
};
if(_vehicle isKindOf "Ship") then
{
SC_liveBoatss = SC_liveBoatss - 1;
SC_liveBoatsArray = SC_liveBoatsArray - [_vehicle];
};