Background for Fallout 4
Member of the ObjectReference script
voidfunctionTetherToHorse(ObjectReferenceakHorse)Native

Description

Wiki Description

Function to tether the prisoner cart to a horse.

Documentation Comment

Tether a prisoner cart to the given horse.


Caveats

CK Wiki - Notes

  • This function moves the horse into position relative to the cart when called.
  • The best time to call this function is in the OnCellLoad() event as at that time both the cart and the horse will have 3D.
  • This function must be applied only to a cart containing Havok data consisting of the following:
  1. A main chassis.
  2. 4 Wheels each attached to 3D named (WheelBackLeft, WheelBackRight, WheelFrontLeft, WheelFrontRight).
  3. A pole sticking out from the front of the cart. to attach to the horse.
  • As of this writing there is a script named CartAndHorseTether with a horse property to perform this function.
  • The cart is not pulled by the pole attached to the wheels. Attempts to do this caused the suspension system for the wheels to break due to the stress. Instead the horse is constrained directly to the cart main chassis. The pole is constrained to the cart for aesthetic reasons only (including turning the wheels).
  • An action is also applied to the cart chassis. This action applies a gravity multiplier to attempt to add extra weight to the cart as well as keeps track of the cart's roll. If the cart tips beyond 45 degrees an impulse is applied to attempt to force the cart back upright.

Parameters

ObjectReferenceakHorse

CK Wiki Description

The ObjectReference to tether to the cart.


Examples

; Tether the cart to the horse
Cart.TetherToHorse(Horse)

Auto-Generated Example

ObjectReference myObjectReference__akHorse

myObjectReference__toCallFunctionOn.TetherToHorse(myObjectReference__akHorse)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.