IsFanMotorOn - ObjectReference
Revision as of 17:56, 10 February 2015 by imported>Jaredpunk (→Syntax)
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