×
Fallout Wiki
☢  Independent Fallout Wiki Resources  Vault logo

ConveyorBeltOn - ObjectReference

Resource:Creation Kit > ConveyorBeltOn - ObjectReference


Member of: ObjectReference Script

Sets a conveyor belt on/off state.

Syntax[edit]

Function ConveyorBeltOn( bool abOn = true ) native

Parameters[edit]

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

Return Value[edit]

None

Examples[edit]

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

Notes[edit]

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