ACE3/addons/cargo/functions/fnc_getCargoSpaceLeft.sqf
johnb432 d1f0dc5e83
Cargo - Improve various aspects (#9617)
* Update CfgVehicles.hpp

* Cargo cleanup

* Update menu.hpp

* Updated status effect key

* Update fnc_onMenuOpen.sqf

* Update fnc_onMenuOpen.sqf

* fix comment from merge

* nil interaction GVARs on menu close

* fix carry bug

* Fix floating objects in MP

* Updated ace_cargoAdded doc

* Fix progress bar prematurely stopping

* Finer cursor object selection

---------

Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
2023-11-17 20:07:28 -03:00

21 lines
401 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Glowbal
* Gets the object's remaining cargo space.
*
* Arguments:
* 0: Holder object (vehicle) <OBJECT>
*
* Return Value:
* Cargo space left <NUMBER>
*
* Example:
* cursorObject call ace_cargo_fnc_getCargoSpaceLeft
*
* Public: No
*/
params ["_vehicle"];
_vehicle getVariable [QGVAR(space), getNumber (configOf _vehicle >> QGVAR(space))]