ACE3/TO_MERGE/ace/sys_cargo/fnc_canLoadCargo.sqf
Giallustio e5f02f8d63 sys_cargo
sys_cargo to merge
2015-01-30 00:19:13 +01:00

27 lines
519 B
Plaintext

/*
Function: ACE_fnc_canLoadCargo
Description:
Checks if vehicle is able to load cargo
Parameters:
_vehicle - Vehicle to load cargo into. [Object]
Returns:
true if _vehicle is able to load cargo, otherwise false.
Example:
(begin example)
_result = [myTruck] call ACE_fnc_canLoadCargo;
(end)
Author:
Xeno
*/
#include "script_component.hpp"
PARAMS_1(_vehicle);
if (isNil "_vehicle" || {isNull _vehicle}) exitWith {false};
(getNumber(configFile >> "CfgVehicles" >> typeOf _vehicle >> "ACE_canBeLoad") == 1)