/* * Author: PabstMirror * Sets a vehicle lock state because of a "ace_vehiclelock_setVehicleLock" event * * Arguments: * 0: Vehicle * 1: New lock state * * Return Value: * None * * Example: * [tank1, false] call ACE_VehicleLock_fnc_setVehicleLockEH; * * Public: Yes */ #include "script_component.hpp" params ["_veh", "_isLocked"]; TRACE_2("params",_veh,_isLocked); private _lockNumber = [0, 2] select _isLocked; TRACE_2("Setting Lock State", _veh, _lockNumber); _veh lock _lockNumber;