ACE3/addons/common/functions/fnc_hasMagazine.sqf

24 lines
448 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-09-19 20:27:23 +00:00
/*
* Author: Glowbal
* Check if given unit has a magazine of given classname
2015-01-16 23:21:47 +00:00
*
2015-09-19 20:27:23 +00:00
* Arguments:
* 0: Unit <OBJECT>
* 1: Magazine Classname <STRING>
*
* Return Value:
* has Magazine <BOOL>
*
* Example:
* [bob, "magazine"] call ace_common_fnc_hasMagazine
*
2015-09-19 20:27:23 +00:00
* Public: yes
*
* Note: Case sensitive
2015-01-16 23:21:47 +00:00
*/
params [["_unit", objNull, [objNull]], ["_magazine", "", [""]]];
2015-05-14 18:06:06 +00:00
2015-09-19 20:27:23 +00:00
_magazine in magazines _unit // return