Set(Array, Index, Value)
setItem(index: number, value: T): void;
Parameters
index
Index of the target cell in the array
value
Target value.
Availability
Client, Server, Custom Controller
Description
Allows to set value of the given position in the array.
Notes
- Values in the cells of one array do not have to be of the same type (i.e string, vector, number).
- Index numbers always start from 0, e.g: Array of length 3 has indexes 0, 1 and 2.
Set(Array, Index, Value)
setItem(index: number, value: T[]): void;
Parameters
index
Index of the target cell in the array.
value
Availability
Client, Server, Custom Controller
Description
Set a value to the given position in the array.
Notes
- Values in the cells of one array do not have to be of the same type (i.e string, vector, number).
- Index numbers always start from 0, e.g: Array of length of 3 has indexes 0, 1, 2.
Ylands - Editor
|
Editor
|
Animated objects,
Custom UI,
Entity welding,
Game export,
Game ID,
Monetization,
MIDI music,
Optimizations,
Common Problems,
FAQ
|
Script
|
Introduction,
Conventions,
Client script,
Text scripting,
Custom controls,
Custom controller,
Storage Data,
Game set,
Leaderboards,
Matchmaking,
Map markers
|
Game logic
|
AI Behaviour,
Ask Player,
Controller,
Custom Camera,
Custom Controls,
Custom HUD,
Custom Window,
Data Set,
Dialogue,
Entity Label,
Entity Storage,
Entity Template,
Environment,
Event Listener,
Game Logic Label,
Game Logic Storage,
Game Logic Template,
Global Storage,
Group Template,
Image Library,
Impassable Barrier,
Light,
Melee Attack Effect,
Particle Effect,
Particle Template,
Path,
Play Area,
Player Role,
Player Team,
Position Animator,
Post Process,
Reference Point,
Resource,
Rotation Animator,
Script Module,
Skill,
Sound Effect,
Spawn Point,
Time Trigger,
Transaction,
Trigger Zone,
Voice Chat Channel,
Water Volume
|
Script tiles
|
Game,
Entities,
Game Logic,
Logic,
Loops,
Instructions,
Number,
Vector,
Color,
String,
Array
|
Misc
|
WIKI FAQ
|