ConveyorBeltOn - ObjectReference
Revision as of 10:46, 18 March 2016 by imported>Arthmoor (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script Sets a conveyor belt on/off state. == Syntax == <source lang="papyrus"> Function Conveyo...")
Member of: ObjectReference Script
Sets a conveyor belt on/off state.
Syntax[edit | edit source]
Function ConveyorBeltOn( bool abOn = true ) native
Parameters[edit | edit source]
- abOn: Desired On/Off state of the belt.
- Default: True
Return Value[edit | edit source]
None
Examples[edit | edit source]
Event OnActivate(ObjectReference aSource)
bool bonoff = Self.IsConveyorBeltOn();
Self.ConveyorBeltOn(!bonoff);
EndEvent
Notes[edit | edit source]
- This fails gracefully. If no conveyor belt exists on the object it does nothing. No results are returned.