-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3d97af
commit 90e7247
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |