Skip to content

match.GetEntitiesByClass

Jérôme Leclercq edited this page Dec 8, 2020 · 1 revision

API: match.GetEntitiesByClass

Description:

Retrieves all entities belonging to a particular class (and possibly on a layer).

Prototype:

match.GetEntitiesByClass(class: string[, layer: integer]) -> entities: table

Parameters:

  1. class: The entity class to find.
  2. layer: If specified, only entities belonging to this layer will be returned

Returns:

  1. entities: A table containing all entities corresponding to search criteria.

Clone this wiki locally