Tile - YArray - Remove – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


==== array ====
==== array ====
Target array


==== object ====
==== object ====
Object to be removed from array
=== Availability ===
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]


=== Description ===
=== Description ===


This instruction will '''remove''' the target '''object'''/'''array of objects''' from the target '''array'''.
Allows to '''remove''' selected '''object''' from '''array'''.


== Remove(Array, Object) ==
== Remove(Array, Object) ==
Line 30: Line 38:
==== object ====
==== object ====


Selected object(s) to remove
Object(s) to removed from array
 
=== Availability ===
 
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]


=== Description ===
=== Description ===


Allows to remove one or more objects from target array.
Allows to '''remove''' array of '''objects''' from '''array'''.





Revision as of 12:17, 12 November 2021

Remove(Array, Object)

YlandsTile-788.png

static remove(array: any[], object: any): void;

Parameters

array

Target array

object

Object to be removed from array

Availability

Client, Server, Custom Controller

Description

Allows to remove selected object from array.

Remove(Array, Object)

YlandsTile-1149.png

static remove(array: any[], object: any[]): void;

Parameters

array

Target array

object

Object(s) to removed from array

Availability

Client, Server, Custom Controller

Description

Allows to remove array of objects from array.