mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20fb895b31
* Add rope to vehicle inventory * Use LINKFUNC * Make setting not need restart Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com>
14 lines
595 B
Plaintext
14 lines
595 B
Plaintext
[
|
|
QGVAR(addRopeToVehicleInventory), "CHECKBOX",
|
|
LSTRING(Setting_addRopeToVehicleInventory_DisplayName),
|
|
LELSTRING(OptionsMenu,CategoryLogistics),
|
|
true,
|
|
true,
|
|
{
|
|
if !(_this && {isServer} && {isNil QGVAR(addRopeToVehicleInventory_initialized)}) exitWith {};
|
|
GVAR(addRopeToVehicleInventory_initialized) = true;
|
|
["Tank", "initPost", LINKFUNC(addRopeToVehicle), true, [], true] call CBA_fnc_addClassEventHandler;
|
|
["Car", "initPost", LINKFUNC(addRopeToVehicle), true, [], true] call CBA_fnc_addClassEventHandler;
|
|
}
|
|
] call CBA_fnc_addSetting;
|