Skip to content

GetEntityKind

What an entity is.

GetEntityKind(id)
Parameter Type
id number the entity

number - ENTITY_HORSE, ENTITY_ITEM, ENTITY_NPC, ENTITY_PROP or ENTITY_DOG; nil when there is no such entity

if GetEntityKind(id) == ENTITY_HORSE then MountPlayer(pid, id) end

GetEntities · GetEntityTemplate · the World entities group of the index