Tile - Array - Remove At – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Remove At(Array, Index, Count) == File:Yland...")
 
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
Line 33: Line 33:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:23, 24 November 2023

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.