ApplyConveyorBelt - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Applies a conveyor belt to the reference.

Syntax

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

Parameters

  • 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

None

Examples

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

  • 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