mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
setVariable names
This commit is contained in:
parent
09eb5d6c65
commit
0ca2cb34ea
@ -24,7 +24,7 @@ _veh = [_this, 0, objNull, [objNull]] call bis_fnc_param;
|
||||
if (isNull _veh) exitWith {["ACE_VehicleLock_fnc_getVehicleSideKey: null vehicle"] call BIS_fnc_error; ""};
|
||||
|
||||
_vehConfigSide = [_veh, true] call BIS_fnc_objectSide;
|
||||
_vehSide = _veh getVariable [QGVAR(lock_side), _vehConfigSide];
|
||||
_vehSide = _veh getVariable [QGVAR(lockSide), _vehConfigSide];
|
||||
|
||||
_returnValue = "";
|
||||
|
||||
|
@ -43,7 +43,7 @@ if (!("ACE_key_lockpick" in (items _unit))) exitWith {
|
||||
false
|
||||
};
|
||||
|
||||
_vehLockpickStrenth = _veh getVariable[QGVAR(LockpickStrength), GVAR(DefaultLockpickStrength)];
|
||||
_vehLockpickStrenth = _veh getVariable[QGVAR(lockpickStrength), GVAR(DefaultLockpickStrength)];
|
||||
if (typeName _vehLockpickStrenth != "SCALAR") exitWith {
|
||||
["ACE_VehicleLock_fnc_lockpick: 'ACE_vehicleLock_LockpickStrength' invalid: (%1)", _veh] call BIS_fnc_error;
|
||||
false
|
||||
|
@ -30,9 +30,9 @@ Custom keys (one key will only open a specific vehicle and nothing else)
|
||||
* `ACE_VehicleLock_DefaultLockpickStrength` - Time in seconds to lock pick globaly, can also set per-vehicle (-1 would disable)
|
||||
|
||||
#### Vehicle setVariables:
|
||||
* `ACE_lock_side` - SIDE: overrides a vehicle's side, allows indfor to use little-bird's with indp keys
|
||||
* `ACE_vehicleLock_pickStr` - NUMBER: secons, determines how long lockpicking with take, overrides ACE_VehicleLock_DefaultLockpickStrength
|
||||
* `ACE_lock_customKeys` - ARRAY: array of strings of magazinesDetails, use the following function to modify
|
||||
* `ACE_VehicleLock_lockSide` - SIDE: overrides a vehicle's side, allows indfor to use little-bird's with indp keys
|
||||
* `ACE_vehicleLock_lockpickStrength` - NUMBER: secons, determines how long lockpicking with take, overrides ACE_VehicleLock_DefaultLockpickStrength
|
||||
* `ACE_VehicleLock_customKeys` - ARRAY: array of strings of magazinesDetails, use the following function to modify
|
||||
|
||||
`[bob, car1, true] call ACE_VehicleLock_fnc_addKeyForVehicle;`
|
||||
will add a `ACE_magazine_customKey` to bob and program it to work on car1
|
||||
|
Loading…
Reference in New Issue
Block a user