IsFanMotorOn - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 18:56, 10 February 2015 by imported>Jaredpunk (→‎Syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

See Also[edit | edit source]