武装突袭 Wiki
Advertisement
Introduced with Arma 3 version 1.56
  

点击图片可看到更多讯息

开始使用于

游戏:
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

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Bottom Section


Advertisement