ACE3/addons/common/functions/fnc_hasMagazine.sqf
2015-09-19 22:27:23 +02:00

19 lines
319 B
Plaintext

/*
* 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>
*
* Public: yes
*/
#include "script_component.hpp"
params ["_unit", "_magazine"];
_magazine in magazines _unit // return