Skip to content

GetEntityTemplate

What an entity is made of - the item class, the soul, the mesh path.

A pickup: its item class GUID (GetItemName names it). A horse or a dog: the soul GUID (GetSoulInfo). A prop: the mesh path. An actor: its soul GUID.

GetEntityTemplate(id)
Parameter Type
id number the entity

string; "" when there is no such entity

function OnPlayerDrop(pid, id)
Log(GetPlayerName(pid), "dropped", GetItemName(GetEntityTemplate(id)))
end

GetEntityKind · GetItemName · GetSoulInfo · GetMeshPath · the World entities group of the index