ACE3/addons/common/functions/fnc_hasMagazine.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

24 lines
451 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Glowbal
* Check if given unit has a magazine of given classname
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Magazine Classname <STRING>
*
* Return Value:
* has Magazine <BOOL>
*
* Example:
* [bob, "magazine"] call ace_common_fnc_hasMagazine
*
* Public: yes
*
* Note: Case sensitive
*/
params [["_unit", objNull, [objNull]], ["_magazine", "", [""]]];
_magazine in magazines _unit // return