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>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob, "magazine"] call ace_common_fnc_hasMagazine
|
|
|
|
*
|
2015-09-19 20:27:23 +00:00
|
|
|
* Public: yes
|
2015-12-12 15:48:54 +00:00
|
|
|
*
|
|
|
|
* Note: Case sensitive
|
2015-01-16 23:21:47 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-12-12 15:48:54 +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
|