Skip to content

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.

function OnActorDismount(id, horse)
-- ...
end
Parameter Type
id number the actor
horse number the horse it rode

nothing

function OnActorDismount(id, horse)
SetActorUse(id, GetNearestSmartObject(GetEntityPos(id), 30, "sit").key) -- off the horse, onto a bench
end

DismountActor · MountActor · the Actor life group of the index