IsConveyorBeltOn - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Get conveyor belt on/off state.

Syntax

bool Function IsConveyorBeltOn( ) native

Parameters

None

Return Value

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

Examples

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

See Also