Tile - YWorld - Get All Entities – Ylands

From Bohemia Interactive Community
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.