Tile - Array - Remove At – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Remove At(Array, Index, Count)

YlandsTile-198.png

splice(index: number, count: number): void;

Parameters

index

Index of first item to be removed

count

Number of items to be removed

Availability

Client, Server, Custom Controller

Description

Remove selected objects from an array.

Notes

  • This instruction changes the length of the original array.
  • Index numbers always start from 0, e.g: Array of length 3 has indexes 0, 1 and 2.