select
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Operation Flashpoint
- Version:
- 1.00
Description
- Description:
- Selects index element of the array.
Index 0 denotes the first element, 1 the second, etc. If index has decimal places <= x.5 it gets floored, otherwise ceiled.
Syntax
Examples
- Example 1:
[1,2,3,4] select 2- result is 3- Example 2:
[1,2,3,4] select true- result is 2.
Alternative method. If the index is false, this selects the first element of the array. If it is true, it selects the second one. The reason for this is that false is an alias for 0 and true an alias for 1. Obsolete syntax.- Example 3:
position player select 2- result is Z coordinate of player position (see Position for more details)
Additional Information
- Multiplayer:
- Behaviour unknown.

