a hash b

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.82
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.82

Description

Description:
Selects an element from an array, same as select command for arrays, but has higher precedence

Syntax

Syntax:
array # index
Parameters:
array: Array
index: Number
Return Value:
Anything

Examples

Example 1:
[1,2,3,4] # 2; // result is 3
Example 2:
position player # 2; // result is Z coordinate of player's position

Additional Information

Multiplayer:
-
See also:
selectselectRandomselectRandomWeightedsetresizereverseinfindtoArraytoStringforEachcountdeleteAtdeleteRangeappendsortparamparamssplitStringjoinStringpushBackpushBackUniqueapply

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on April 25, 2018 - 00:51 (UTC)
KC Grimes
Although not alternative syntax, the below notations work as expected: ["A","B","C"] # 1; //B ["A","B","C"] #1; //B ["A","B","C"]#1; //B ["A","B",["C","D"]]#2#0; //C