System GetEntitiesByClass

From CryWiki

Jump to: navigation, search

System.GetEntitiesByClass(string)

Description

Gets all the entities in the level with the given classname

Arguments

  1. Name of entity class

Returns

Table with entities

Example

Lua (example)
local ents=System.GetEntitiesByClass("Grunt");
Log("There are "..table.getn(ents).." grunts in this level.");


Personal tools