IsFanMotorOn - ObjectReference

Member of: ObjectReference Script

Get fan motor on/off state.

SyntaxEdit

bool Function IsFanMotorOn( ) native

ParametersEdit

None

Return ValueEdit

True if on, False if off or the fan motor does not exist.

ExamplesEdit

Event OnActivate(ObjectReference aSource)
  bool bonoff = Self.IsFanMotorOn();
  Self.FanMotorOn(!bonoff);
EndEvent

See AlsoEdit