2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-01-23 22:40:39 +00:00
|
|
|
/*
|
2015-03-15 16:27:21 +00:00
|
|
|
* Author: PabstMirror
|
2016-05-25 00:37:24 +00:00
|
|
|
* Sets a vehicle lock state because of a "ace_vehiclelock_setVehicleLock" event
|
2015-03-15 16:27:21 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Vehicle <OBJECT>
|
|
|
|
* 1: New lock state <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [tank1, false] call ACE_VehicleLock_fnc_setVehicleLockEH;
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-23 22:40:39 +00:00
|
|
|
|
2015-08-04 03:11:45 +00:00
|
|
|
params ["_veh", "_isLocked"];
|
2015-08-07 18:24:47 +00:00
|
|
|
TRACE_2("params",_veh,_isLocked);
|
2015-01-23 22:40:39 +00:00
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
private _lockNumber = [0, 2] select _isLocked;
|
2024-02-05 17:04:24 +00:00
|
|
|
TRACE_2("Setting Lock State",_veh,_lockNumber);
|
2015-01-23 22:40:39 +00:00
|
|
|
_veh lock _lockNumber;
|