FanMotorOn - ObjectReference
Jump to navigation
Jump to search
Member of: ObjectReference Script
Sets a fan motor on/off state.
Syntax[edit | edit source]
Function FanMotorOn( bool abOn = true ) native
Parameters[edit | edit source]
- abOn: Desired On/Off state of the motor.
- Default: True
Return Value[edit | edit source]
None
Examples[edit | edit source]
Event OnActivate(ObjectReference aSource)
bool bonoff = Self.IsFanMotorOn();
Self.FanMotorOn(!bonoff);
EndEvent
Notes[edit | edit source]
- This fails gracefully. If no fan motor exists on the object it does nothing. No results are returned.