GetEntityName
An NPC actor’s label; empty for everything else.
Syntax
Section titled “Syntax”GetEntityName(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”string - the name over the actor’s head; "" for other kinds or no such entity
Example
Section titled “Example”function OnActorDeath(id, attacker) SendClientMessageToAll(COLOUR_SERVER, GetEntityName(id) .. " is dead")endSee also
Section titled “See also”CreateActor · the World entities group of the index
