ACE3/TO_MERGE/ace/sys_cargo/fnc_canLoadCargo.sqf

27 lines
519 B
Plaintext
Raw Normal View History

2015-01-29 23:18:45 +00:00
/*
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)