ACE3/addons/rearm/functions/fnc_getVehicleMagazines.sqf
PabstMirror f35f80ee82 Rearm - Pylon Support and Dynamically Add Supply Actions (#5183)
* Dynamic Add

* Support 1.70 Pylon Loadouts

* Properly handle old compat pbos - Update RHS Compat

* Re-add documentation

* cleanup headers (note from other pr)

* Cleanup

* Fix var spelling
2017-06-08 11:47:52 -05:00

20 lines
450 B
Plaintext

/*
* Author: GitHawk, Jonpas
* Returns all magazines a turret of a vehicle object can hold according to config.
*
* Arguments:
* 0: Vehicle object or typeOf <OBJECT><STRING>
* 1: Turret Path <ARRAY>
*
* Return Value:
* Magazine classes in TurretPath <ARRAY>
*
* Example:
* [vehicle, [0]] call ace_rearm_fnc_getVehicleMagazines
*
* Public: No
*/
#include "script_component.hpp"
getArray ((_this call CBA_fnc_getTurret) >> "magazines")