Tile - Array - Remove At – Ylands

From Bohemia Interactive Community
Revision as of 14:23, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.