IsFanMotorOn - ObjectReference
Jump to navigation
Jump to search
Member of: ObjectReference Script
Get fan motor on/off state.
Syntax[edit | edit source]
bool Function IsFanMotorOn( ) native
Parameters[edit | edit source]
None
Return Value[edit | edit source]
True if on, False if off or the fan motor does not exist.
Examples[edit | edit source]
Event OnActivate(ObjectReference aSource)
bool bonoff = Self.IsFanMotorOn();
Self.FanMotorOn(!bonoff);
EndEvent