Mod:Creation Kit/ApplyFanMotor - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Applies a fan motor to the reference.

Syntax
Function ApplyFanMotor( string aTarget, float aAxisX, float aAxisY, float aAxisZ, float aForce, bool abOn = true ) native

Parameters

 * aTarget: Name of the target scenegraph element that owns the rigidbody to which the motor will attach.
 * aAxisX: Maximum rotational velocity around the x axis in radians/second.
 * aAxisY: Maximum rotational velocity around the y axis in radians/second.
 * aAxisZ: Maximum rotational velocity around the z axis in radians/second.
 * aForce: Force of motor. This value will depend on the characteristics of the rigidbody so you will have to experiment.
 * abOn: Initial On/Off state of the motor.
 * Default: True

Return Value
None

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