mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a3aef6a066
Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
25 lines
520 B
Plaintext
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;
|