mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
0d9bcdd708
commit
bf6dc5a7a1
@ -1,3 +1,3 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
["ace_backpackOpened", {_this call FUNC(backpackOpened)}] call CBA_fnc_addEventHandler;
|
||||
["ace_backpackOpened", LINKFUNC(backpackOpened)] call CBA_fnc_addEventHandler;
|
||||
|
@ -17,10 +17,10 @@
|
||||
|
||||
params [["_backpack", objNull, [objNull, ""]]];
|
||||
|
||||
private _config = if (_backpack isEqualType objNull) then {
|
||||
configOf _backpack
|
||||
} else {
|
||||
configFile >> "CfgVehicles" >> _backpack
|
||||
if (_backpack isEqualType objNull) exitWith {
|
||||
maxLoad _backpack > 0
|
||||
};
|
||||
|
||||
private _config = configFile >> "CfgVehicles" >> _backpack;
|
||||
|
||||
getText (_config >> "vehicleClass") == "backpacks" && {getNumber (_config >> "maximumLoad") > 0} // return
|
||||
|
Loading…
Reference in New Issue
Block a user