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.
Syntax
Section titled “Syntax”GetEntityTemplate(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”string; "" when there is no such entity
Example
Section titled “Example”function OnPlayerDrop(pid, id) Log(GetPlayerName(pid), "dropped", GetItemName(GetEntityTemplate(id)))endSee also
Section titled “See also”GetEntityKind · GetItemName · GetSoulInfo · GetMeshPath · the World entities group of the index
