Fix cookoff event calling (#4487)

This commit is contained in:
PabstMirror 2016-09-29 18:44:48 -05:00 committed by GitHub
parent dad4293216
commit a5d106c116

View File

@ -20,7 +20,9 @@ params ["_vehicle"];
if (_vehicle getVariable [QGVAR(isCookingOff), false]) exitWith {};
_vehicle setVariable [QGVAR(isCookingOff), true];
[QGVAR(cookOff), _vehicle] call CBA_fnc_remoteEvent;
if (local _vehicle) then {
[QGVAR(cookOff), _vehicle] call CBA_fnc_remoteEvent;
};
[{
params ["_vehicle"];