arma2-epoch-server/MPMissions/DayZ_Epoch_24.Napf/spawn/functions/class_randomTools.sqf
2022-04-21 16:15:41 +03:00

16 lines
346 B
Plaintext
Executable File

private ["_tool","_tools","_type"];
_type = _this;
_tools = class_choice select _type;
if (count _tools > 0) then {
_tools = [];
while {count _tools < (class_choice select (_type + 1))} do {
_tool = (class_choice select _type) call BIS_fnc_selectRandom;
if !(_tool in _tools) then {
_tools set [count _tools,_tool];
};
};
};
_tools