ACE3/addons/gunbag/functions/fnc_hasGunbag.sqf
Dedmen Miller 26fe041342 Move gunbag type from inheritance to config property (#7022)
* Move gunbag type from inheritance to config property

* Add gunbag framework wiki

* Remove _generalMacro from doc

* Apply documentation suggestions

Co-Authored-By: mharis001 <34453221+mharis001@users.noreply.github.com>
2019-06-04 20:00:55 -05:00

21 lines
341 B
Plaintext

#include "script_component.hpp"
/*
* Author: Ir0n1E
* Check if unit has a gunbag.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* Has Gunbag <BOOL>
*
* Example:
* [player] call ace_gunbag_fnc_hasGunbag
*
* Public: No
*/
params ["_unit"];
getNumber (configFile >> "CfgVehicles" >> (backpack _unit) >> QUOTE(ADDON)) == 1