ApplyConveyorBelt - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Applies a conveyor belt to the reference.

Syntax[edit | edit source]

Function ApplyConveyorBelt( string aTarget, float aLinVelX, float aLinVelY, float aLinVelZ, bool abOn = true, bool abReverse = false ) native

Parameters[edit | edit source]

  • aTarget: Name of the target scenegraph element that owns the rigidbody which represents the conveyor belt.
  • aLinVelX: Local-space linear velocity on the x-axis.
  • aLinVelY: Local-space linear velocity on the y-axis.
  • aLinVelZ: Local-space linear velocity on the z-axis.
  • abOn: Initial On/Off state of the belt.
    • Default: True
  • abReverse: Initial Reverse state of the belt.
    • Default: False

Return Value[edit | edit source]

None

Examples[edit | edit source]

Event OnInit()
  ;Apply conveyor belt to the "Belt" of the 3D of this object.
  Self.ApplyConveyorBelt("Belt", 1.0, 0.5, 0.0, true,false);
EndEvent

Notes[edit | edit source]

  • Only 1 conveyor may be attached to a reference at a time.
    • Any physics bodies under the target will also be considered conveyor belts.

See Also[edit | edit source]