ACE3/addons/common/functions/fnc_uniqueElements.sqf

21 lines
360 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-09-20 13:52:40 +00:00
/*
* Author: Glowbal
* Make a copy of an array with only the unique elements.
*
* Arguments:
* 0: array <ARRAY>
*
* Return Value:
* Copy of original array <ARRAY>
*
* Example:
* [[array]] call ace_common_fnc_uniqueElements
*
2015-09-20 13:52:40 +00:00
* Public: Yes
*/
params [["_array", [], [[]]]];
2015-09-20 13:52:40 +00:00
2015-09-20 18:25:25 +00:00
_array arrayIntersect _array // return