OnActorDismount
An actor is off its horse.
After DismountActor (the game’s dismount is over), or at once when its death, its horse’s death, either one’s removal or a
knock-out threw it off.
Syntax
Section titled “Syntax”function OnActorDismount(id, horse) -- ...end| Parameter | Type | |
|---|---|---|
id |
number | the actor |
horse |
number | the horse it rode |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnActorDismount(id, horse) SetActorUse(id, GetNearestSmartObject(GetEntityPos(id), 30, "sit").key) -- off the horse, onto a benchendSee also
Section titled “See also”DismountActor · MountActor · the Actor life group of the index
