diff --git a/addons/hashes/CfgFunctions.hpp b/addons/hashes/CfgFunctions.hpp index 111fd3c53..dda937bd3 100644 --- a/addons/hashes/CfgFunctions.hpp +++ b/addons/hashes/CfgFunctions.hpp @@ -10,6 +10,7 @@ class CfgFunctions { PATHTO_FNC(hashRem); PATHTO_FNC(hashSet); PATHTO_FNC(hashSize); + PATHTO_FNC(hashValues); PATHTO_FNC(isHash); PATHTO_FNC(parseYAML); PATHTO_FNC(serializeNamespace); diff --git a/addons/hashes/fnc_hashValues.sqf b/addons/hashes/fnc_hashValues.sqf new file mode 100644 index 000000000..45e9f8f25 --- /dev/null +++ b/addons/hashes/fnc_hashValues.sqf @@ -0,0 +1,25 @@ +#include "script_component.hpp" +#include "script_hashes.hpp" +/* ---------------------------------------------------------------------------- +Function: CBA_fnc_hashValues + +Description: + Returns all values in a Hash. + + See . + +Parameters: + _hash - Hash to get values for [Array which is a Hash structure] + +Returns: + Array of all values [Array] + +Author: + Fusselwurm +---------------------------------------------------------------------------- */ +SCRIPT(hashValues); + +// ----------------------------------------------------------------------------- +params [["_hash", [[], []], [[]]]]; + ++(_hash select HASH_VALUES)