Add JIP event deleting if vehicle is deleted (#5506)

This commit is contained in:
Dystopian
2017-09-16 22:18:28 +02:00
committed by jonpas
parent 1a1fdb7c2c
commit 357f3a9ceb
3 changed files with 3 additions and 4 deletions

View File

@ -50,6 +50,7 @@ private _jipID = _object getVariable QGVAR(setSize_jipID);
// Actions should be added to all future JIP players too
if (isNil "_jipID") then {
_jipID = [QGVAR(initObject), [_object]] call CBA_fnc_globalEventJIP;
[_jipID, _object] call CBA_fnc_removeGlobalEventJIP;
// Store the ID for any future calls to this function
_object setVariable [QGVAR(setSize_jipID), _jipID, true];