mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
24 lines
451 B
Plaintext
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
|