IsConveyorBeltOn - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Get conveyor belt on/off state.

Syntax[edit | edit source]

bool Function IsConveyorBeltOn( ) native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

True if on, False if off or the conveyor belt does not exist.

Examples[edit | edit source]

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

See Also[edit | edit source]