Skip to content

Commit

Permalink
Create fn_gear_getLoadoutTags.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Apr 1, 2024
1 parent e3d97af commit 90e7247
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cScripts/functions/gear/fn_gear_getLoadoutTags.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include "..\script_component.hpp"
/*
* Author: CPL.Brostrom.A
* This function return lodout tags
*
* Arguments:
* None
*
* Return Value:
* Tags <ARRAY>
*
* Example:
* call cScripts_fnc_gear_getLoadoutTags
*
*/

private _return = [];

private _loadout = GETVAR(player,EGVAR(Gear,loadoutClass),typeOf player);

private _config = missionConfigFile >> "CfgLoadouts" >> _loadout;
private _tags = getArray (_config >> "equipmentTags");
if (_tags != "") then {_return = _tags};

_return

0 comments on commit 90e7247

Please sign in to comment.