Skip to content

UnloadHorse

Takes the body off a horse.

The body lies at x, y, z (and yaw, degrees, which counts only together with x, y, z) when they are given, else beside the horse on its left; OnHorseUnload follows with "mode". A knocked-out player or actor stays knocked out on the ground, a corpse lies there as a corpse, and a player the mode laid across the horse awake gets up. false when nothing lies across it.

UnloadHorse(horseId [, x, y, z, yaw])
Parameter Type
horseId number the horse’s entity id
x number metres - where the body is to lie (optional)
y number metres (optional)
z number metres (optional)
yaw number degrees - the body’s heading there; used only together with x, y, z (optional)

boolean - false when the horse carried no body

-- the jail takes the prisoner off the horse at its door
UnloadHorse(horse, 512.0, 1301.5, 40.2, 180)

LoadPlayerOnHorse · LoadEntityOnHorse · OnHorseUnload · the Carrying group of the index