ACE3/addons/rearm/functions/fnc_getVehicleMagazines.sqf
2016-02-27 20:31:07 +01:00

24 lines
515 B
Plaintext

/*
* Author: GitHawk, Jonpas
* Returns all magazines a turret can hold according to config.
*
* Arguments:
* 0: Target <OBJECT>
* 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"
params [["_target", objNull, [objNull]], ["_turretPath", [], [[]]]];
if (isNull _target) exitWith {[]};
([typeOf _target, _turretPath] call FUNC(getConfigMagazines))