Tile category - Array – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:


=Notes=
=Notes=
*Values in all cells of one array does not have to be of same type (i.e string, vector, number)
*Values in all cells of one array does not have to be of same type (i.e string, vector, number).
*Index numbers always start from 0, e.g: Array of [[Ylands Tile - Array length|'''length''']] 3 has indexes 0, 1, 2
*Index numbers always start from 0, e.g: Array of [[Ylands Tile - Array length|'''length''']] 3 has indexes 0, 1, 2.
*Most of instructions will modify used array
*Arrays are '''reference types''', meaning that most of '''instructions''' will '''modify''' original '''array''', even when "copied" to variable.




----
----
{{Ylands scripting navbox}}
{{Ylands scripting navbox}}

Revision as of 18:10, 3 January 2019

Instructions

Notes

  • Values in all cells of one array does not have to be of same type (i.e string, vector, number).
  • Index numbers always start from 0, e.g: Array of length 3 has indexes 0, 1, 2.
  • Arrays are reference types, meaning that most of instructions will modify original array, even when "copied" to variable.



Template:Ylands scripting navbox