IsConveyorBeltOn - ObjectReference
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...")
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