Skip to content

LoadEntityOnHorse

Lays a body or an NPC actor across a horse - the mode’s own order.

As LoadPlayerOnHorse, for a character’s body that lies dead (an NPC actor’s, a dead player’s corpse) or an NPC actor (a living one shows knocked out there and leaves its seat or work). Refused for an animal, a body somebody searches, an actor that rides or sits in a cart, and for the horse as in LoadPlayerOnHorse.

LoadEntityOnHorse(horseId, entityId)
Parameter Type
horseId number the horse’s entity id
entityId number the body or the actor

boolean, string - true when it lies across the horse; false and the reason when not

local ok, why = LoadEntityOnHorse(horse, corpse)
if not ok then Log("no load:", why) end

LoadPlayerOnHorse · UnloadHorse · GetHorseLoad · the Carrying group of the index