mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26fe041342
* 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>
21 lines
341 B
Plaintext
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
|