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.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”boolean - false when the horse carried no body
Example
Section titled “Example”-- the jail takes the prisoner off the horse at its doorUnloadHorse(horse, 512.0, 1301.5, 40.2, 180)See also
Section titled “See also”LoadPlayerOnHorse · LoadEntityOnHorse · OnHorseUnload · the Carrying group of the index
