mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e5f02f8d63
sys_cargo to merge
27 lines
519 B
Plaintext
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) |