IsFanMotorOn - ObjectReference

Revision as of 17:56, 10 February 2015 by imported>Jaredpunk (→‎Syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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