ConveyorBeltOn - ObjectReference

Member of: ObjectReference Script

Sets a conveyor belt on/off state.

SyntaxEdit

Function ConveyorBeltOn( bool abOn = true ) native

ParametersEdit

  • abOn: Desired On/Off state of the belt.
    • Default: True

Return ValueEdit

None

ExamplesEdit

Event OnActivate(ObjectReference aSource)
  bool bonoff = Self.IsConveyorBeltOn();
  Self.ConveyorBeltOn(!bonoff);
EndEvent

NotesEdit

  • This fails gracefully. If no conveyor belt exists on the object it does nothing. No results are returned.

See AlsoEdit