Background for Fallout 4
Member of the ObjectReference script
voidfunctionApplyFanMotor(stringaTarget, floataAxisX, floataAxisY, floataAxisZ, floataForce, boolabOn=true)Native

Description

Wiki Description

Applies a fan motor to the reference.

Documentation Comment

Add fan motor to this reference


Caveats

CK Wiki - Notes

  • Only 1 motor may be attached to a reference at a time. Attempts to add more than 1 will simply change the parameters of the previous motor. Any new target value will not take effect until the object is reloaded.
  • The target object must be a dynamic object and should be constrained to a fixed base object with an unlimited hinge or wheel constraint.
  • The rotational velocity is applied at the center of gravity location.

Parameters

stringaTarget

CK Wiki Description

Name of the target scenegraph element that owns the rigidbody to which the motor will attach.

floataAxisX

CK Wiki Description

Maximum rotational velocity around the x axis in radians/second.

floataAxisY

CK Wiki Description

Maximum rotational velocity around the y axis in radians/second.

floataAxisZ

CK Wiki Description

Maximum rotational velocity around the z axis in radians/second.

floataForce

CK Wiki Description

Force of motor. This value will depend on the characteristics of the rigidbody so you will have to experiment.

boolabOn=true

CK Wiki Description

Initial On/Off state of the motor.

  • Default:True

Examples

Event OnInit()
  ;Apply fan motor to the FanBlades of the 3D of this object.
  Self.ApplyFanMotor("FanBlades", 0.0, 0.0, 6.0, 5.0, true);
EndEvent

Auto-Generated Example

string myString__aTarget
float myFloat__aAxisX
float myFloat__aAxisY
float myFloat__aAxisZ
float myFloat__aForce
bool myBool__abOn

myObjectReference__toCallFunctionOn.ApplyFanMotor(myString__aTarget, myFloat__aAxisX, myFloat__aAxisY, myFloat__aAxisZ, myFloat__aForce, 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.