mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
d1f0dc5e83
* 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>
21 lines
401 B
Plaintext
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))]
|