ACE3/addons/rearm/functions/fnc_getTurretConfigMagazines.sqf

20 lines
455 B
Plaintext
Raw Normal View History

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