GetEntityKey (script event)

Game class

This event operates on an instance of the game class type idEntity . All spawn classes inherit this event.

Description

Retrieves the entity specified by the spawn arg .

Usage

entity getEntityKey( string key )

Parameters

  • [key] - Name of key that holds an entity name.

Examples

$my_entity.getEntityKey( "target" );

Notes

This script event returns the entity specified as an entity. See getEntity (script event) for getting a reference directly by name.