ACE3/addons/common/functions/fnc_hasMagazine.sqf

19 lines
319 B
Plaintext
Raw Normal View History

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>
*
* Public: yes
2015-01-16 23:21:47 +00:00
*/
#include "script_component.hpp"
2015-09-19 20:27:23 +00:00
params ["_unit", "_magazine"];
2015-05-14 18:06:06 +00:00
2015-09-19 20:27:23 +00:00
_magazine in magazines _unit // return