ACE3/addons/gunbag/functions/fnc_hasGunbag.sqf

21 lines
341 B
Plaintext
Raw Normal View History

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