GetEntity (script event)
Game class
This event operates on an instance of the game class type idThread , accessible via sys identifier.
Description
Returns a reference to the entity with the specified name.
Usage
entity getEntity( string name )
Parameters
- [name] - The name of the entity to return.
Examples
ent = sys.getEntity("func_door_1");
Notes
This script event returns the entity that matches the given name or null if not found.