IsConveyorBeltOn - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 10:48, 18 March 2016 by imported>Arthmoor (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script Get conveyor belt on/off state. == Syntax == <source lang="papyrus"> bool Function IsCon...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]