ACE3/addons/cargo/functions/fnc_getCargoSpaceLeft.sqf

21 lines
398 B
Plaintext
Raw Normal View History

2015-08-10 21:07:47 +00:00
/*
* Author: Glowbal
2015-08-16 20:41:35 +00:00
* Get the cargo space left on object.
2015-08-10 21:07:47 +00:00
*
* Arguments:
* 0: Object <OBJECT>
*
* Return value:
* Cargo space left <NUMBER>
*
2015-08-16 20:41:35 +00:00
* Example:
* [object] call ace_cargo_fnc_getCargoSpaceLeft
*
2015-08-10 21:07:47 +00:00
* Public: No
*/
#include "script_component.hpp"
2015-08-16 20:41:35 +00:00
params ["_object"];
_object getVariable [QGVAR(space), getNumber (configFile >> "CfgVehicles" >> typeof _object >> QGVAR(space))]