Tile - YArray - Remove – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
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'''.




----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


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

Latest revision as of 14:24, 24 November 2023

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.