mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
24 lines
605 B
Plaintext
24 lines
605 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2, johnb43
|
|
* Return all magazine types from reloader's inventory that are compatible with the given launcher.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit wanting to execute the reload <OBJECT>
|
|
* 1: Launcher name <STRING>
|
|
*
|
|
* Return Value:
|
|
* Reloable magazines <ARRAY>
|
|
*
|
|
* Example:
|
|
* [player, "launch_RPG32_F"] call ace_reloadlaunchers_fnc_getLoadableMissiles
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_unit", "_weapon"];
|
|
TRACE_2("params",_unit,_weapon);
|
|
|
|
// Look for primary muzzle magazines only
|
|
(compatibleMagazines [_weapon, "this"]) arrayIntersect (magazines _unit)
|