DismountActor
Gets an actor off its horse with the game’s dismount.
About three seconds; the actor then stands beside the horse and OnActorDismount runs. instant = true sets it down at once.
The horse stays where it is, loose - a player may take it, or DestroyEntity it.
Syntax
Section titled “Syntax”DismountActor(id [, instant])| Parameter | Type | |
|---|---|---|
id |
number | the actor |
instant |
boolean | true = at once (optional) |
Returns
Section titled “Returns”boolean - false when it rides no horse
Example
Section titled “Example”function OnActorArrive(id) if id == courier then DismountActor(id) end -- at the inn: off the horseendSee also
Section titled “See also”MountActor · OnActorDismount · the Actor life group of the index
