mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e8693c8db9
* configOf * replace some use of CBA_fnc_getObjectConfig
22 lines
407 B
Plaintext
22 lines
407 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* 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
|
|
*/
|
|
|
|
params ["_object"];
|
|
// TRACE_1("params",_object);
|
|
|
|
(_object getVariable [QGVAR(space), getNumber (configOf _object >> QGVAR(space))]) max 0
|