Background for Fallout 4
Member of the ObjectReference script
voidfunctionFanMotorOn(boolabOn=true)Native

Description

Wiki Description

Sets a fan motor on/off state.

Documentation Comment

Set fan motor on.


Caveats

CK Wiki - Notes

  • This fails gracefully. If no fan motor exists on the object it does nothing. No results are returned.

Parameters

boolabOn=true

CK Wiki Description

Desired On/Off state of the motor.

  • Default:True

Examples

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

Auto-Generated Example

bool myBool__abOn

myObjectReference__toCallFunctionOn.FanMotorOn(myBool__abOn)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.