User Tools

Site Tools


script_syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
script_syntax [2020/02/17 10:51] justinscript_syntax [2020/02/18 17:37] justin
Line 126: Line 126:
 |Tags for an Entity|List of tags assigned to an [[entity|entity's]] model (see [[Model Properties]]).|player.tags, initiator.tags| |Tags for an Entity|List of tags assigned to an [[entity|entity's]] model (see [[Model Properties]]).|player.tags, initiator.tags|
  
-The values in an array can be iterated through using a "For" loop. You can also check to see if a particular value exists within an array using the "containsoperator in a [[conditional expression]]. See below for some example script usages.+The values in an array can be iterated through using a "For" loop, or you can get the value at a specific position within the array using the index syntax //my_array[x]//, where "my_arrayis an [[array]] variable and "x" is an integer ranging from 0 to one less than the [[array]] size. See below for some example script usages.
  
 **Examples:** **Examples:**
Line 219: Line 219:
 </code> </code>
 List of integers from 5 to, but not including, 0, with an increment of -1 (i.e. 5, 4, 3, 2, 1). List of integers from 5 to, but not including, 0, with an increment of -1 (i.e. 5, 4, 3, 2, 1).
- 
  
 ====Inverse==== ====Inverse====
script_syntax.txt · Last modified: 2023/11/06 14:13 by justin