GetEntityLoadHorse
The horse a body or an NPC actor lies across.
Syntax
Section titled “Syntax”GetEntityLoadHorse(entityId)| Parameter | Type | |
|---|---|---|
entityId |
number | the body or the actor |
Returns
Section titled “Returns”number - the horse’s entity id; nil when it lies across none
Example
Section titled “Example”if GetEntityLoadHorse(corpse) then return end -- not while it lies across a horseDestroyEntity(corpse)See also
Section titled “See also”GetHorseLoad · GetPlayerLoadHorse · LoadEntityOnHorse · the Carrying group of the index
