mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
440 B
Plaintext
21 lines
440 B
Plaintext
|
/*
|
||
|
* Author: Glowbal
|
||
|
* Get the cargo size of an object
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Object <OBJECT>
|
||
|
*
|
||
|
* Return value:
|
||
|
* Cargo size. -1 is not a size defined <NUMBER>
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
params ["_item"];
|
||
|
if (isNumber (configFile >> "CfgVehicles" >> typeof _item >> QGVAR(size))) exitwith {
|
||
|
_item getvariable [QGVAR(size), getNumber (configFile >> "CfgVehicles" >> typeof _item >> QGVAR(size))];
|
||
|
};
|
||
|
-1;
|