点击图片可看到更多讯息
开始使用于
- 游戏:
- Arma 3
- 版本:
- 1.56
描述
- 描述:
- Adds element to the back of the given array but only if it is unique to the array. The index of the added element is returned upon success, otherwise -1. This command modifies the original array.
基本句法
- 句法:
- array pushBackUnique element
- 参数:
- array: Array
- element: Anything
- 返回值:
- Number - index of inserted element or -1
范例
- 范例1:
_arr = [1,2,3]; _index = _arr pushBackUnique 3; hint str [_index, _arr]; //[-1,[1,2,3]]
- 范例2:
_arr = [1,2,3]; _index = _arr pushBackUnique 4; hint str [_index, _arr]; //[3,[1,2,3,4]]
额外资讯
- 多人游戏:
- -
- 也可以看看:
- pushBackselectsetresizereversecountfindinforEachdeleteAtdeleteRangeappendsortarrayIntersectapplyBIS_fnc_arrayPushStackBIS_fnc_arrayPush
注意事项
Notes
Bottom Section