GetEntityKind
What an entity is.
Syntax
Section titled “Syntax”GetEntityKind(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”number - ENTITY_HORSE, ENTITY_ITEM, ENTITY_NPC, ENTITY_PROP or ENTITY_DOG; nil when there is no such entity
Example
Section titled “Example”if GetEntityKind(id) == ENTITY_HORSE then MountPlayer(pid, id) endSee also
Section titled “See also”GetEntities · GetEntityTemplate · the World entities group of the index
