ACE3/addons/vehiclelock/functions/fnc_setVehicleLockEH.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

25 lines
522 B
Plaintext

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