Language

getEntity


getEntity(string name) : Entity

Description

Return a pointer to an entity class.

Parameters

name
The name of the entity.

Return

Return an entity class or nil if entity does not exists.


Examples

Retreive entity pointer and set health

  1. local boss = getEntity("boss")
  2. boss:setHealth(100)