Skip to content

GetEntityName

An NPC actor’s label; empty for everything else.

GetEntityName(id)
Parameter Type
id number the entity

string - the name over the actor’s head; "" for other kinds or no such entity

function OnActorDeath(id, attacker)
SendClientMessageToAll(COLOUR_SERVER, GetEntityName(id) .. " is dead")
end

CreateActor · the World entities group of the index