ACE3/addons/cargo/functions/fnc_getCargoSpaceLeft.sqf
2016-01-19 14:51:58 -06:00

22 lines
428 B
Plaintext

/*
* Author: Glowbal
* Get the cargo space left on object.
*
* Arguments:
* 0: Object <OBJECT>
*
* Return value:
* Cargo space left <NUMBER>
*
* Example:
* [object] call ace_cargo_fnc_getCargoSpaceLeft
*
* Public: No
*/
#include "script_component.hpp"
params ["_object"];
// TRACE_1("params",_object);
_object getVariable [QGVAR(space), getNumber (configFile >> "CfgVehicles" >> typeOf _object >> QGVAR(space))]