IsFanMotorOn - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Get fan motor on/off state.

Syntax

bool Function IsFanMotorOn( ) native

Parameters

None

Return Value

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

Examples

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

See Also