Skip to content

Commit

Permalink
Fix quickTag
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Nov 28, 2018
1 parent a05c783 commit 5bbffa0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion addons/tagging/functions/fnc_quickTag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,13 @@ if (GVAR(quickTag) == 3) then {
// Tag
if !(_possibleTags isEqualTo []) then {
private _availableTags = _possibleTags select {(_x select 2) in (_unit call EFUNC(common,uniqueItems))};
[_unit, selectRandom ((selectRandom _availableTags) select 3)] call FUNC(tag);
(selectRandom _availableTags) params ["", "", "_textures", "", "_materials"];
private _randomTexture = selectRandom _textures;
private _randomMaterial = if (count _textures == count _materials) then {
_materials select (_textures find _randomTexture)
} else {
selectRandom _materials
};

[_unit, _randomTexture, _randomMaterial] call FUNC(tag);
};

0 comments on commit 5bbffa0

Please sign in to comment.