Tile - YWorld - Get All Entities – Ylands

From Bohemia Interactive Community
Revision as of 15:35, 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

Get All Entities()

YlandsTile-1414.png

static getAllEntities(): YEntity[];

Returns

YEntity[] Returns an array of all entities placed in the game.

Availability

Description

Returns an array of all entities placed in the game.

Get All Entities(Type)

YlandsTile-1394.png

static getAllEntitiesOfType(type: YEntityType): YEntity[];

Parameters

type

Returns

YEntity[] Returns an array of all entities placed in the game, of the selected entity type.

Availability

Description

Returns an array of all entities placed in the game, of the selected entity type.

Get All Entities(Class)

YlandsTile-1401.png

static getAllEntitiesOfClass(tag: YTag): YEntity[];

Parameters

tag

Returns

YEntity[] Returns an array of all entities placed in the game, of the selected class.

Availability

Description

Returns an array of all entities placed in the game, of the selected class.