Mod:Creation Kit/SetVehicle - Actor

Member of: Mod:Creation Kit/Actor Script

Attaches the actor to a horse, cart, or other vehicle -- or detaches it from its current vehicle.

Syntax
Function SetVehicle(Actor akVehicle) native

Parameters

 * akVehicle: The vehicle ref to which this actor should attach. If you want to detach the actor from its current vehicle, set akVehicle to None.

Return Value
None.

Examples
Bob.SetVehicle(Horse)
 * Set Bob to ride his horse