ACE3/addons/vehiclelock/functions/fnc_setVehicleLockEH.sqf
PabstMirror a3aef6a066
General - Cleanup spaces in macros (#9769)
Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
2024-02-05 14:04:24 -03:00

25 lines
520 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;