> For the complete documentation index, see [llms.txt](https://arcdocs.enigma23.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arcdocs.enigma23.co.uk/script-properties/public-methods.md).

# Public Methods

| Method                           | Description                                                                                                                                                           |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SetRotorcraftSettings()          | Updates the rotorcraft settings from the RotorcraftSettings ScriptableObject. Called in Awake() and from the update button located on the component in the inspector. |
| MovementPenalty(float)           | Used to change the MaxSpeed of the rotorcraft. Example use: slowing down rotorcraft in heavy weather.                                                                 |
| SteeringPenalty(float)           | Used to change the Steering speed of the rotorcraft. Example use: harder to turn in foliage.                                                                          |
| ToggleRotors()                   | Toggles the engine to the opposite of its current state.                                                                                                              |
| EnabledRotors()                  | Turns the engine on.                                                                                                                                                  |
| DisableRotors()                  | Turns the engine off.                                                                                                                                                 |
| Throttle(float)                  | <p>Makes the rotorcraft move up or down, pass in an int to determine the direction.</p><p>1 for up.</p><p>-1 for down.</p>                                            |
| ControlPitchForward()            | Move the rotorcraft forward.                                                                                                                                          |
| ControlPitchBackward()           | Move the rotorcraft backwards.                                                                                                                                        |
| ControlYaw(float)                | <p>Controls the turning of the rotorcraft, pass in an int to determine the direction.<br> -1 for left.<br> 1 for right.</p>                                           |
| ControlRoll(float)               | <p>Move sideways, left or right. Pass in an int to determine the direction.</p><p> -1 for left.<br> 1 for right.</p>                                                  |
| Boost()                          | Boosts the rotorcraft.                                                                                                                                                |
| OneShotBoost(float)              | Performs a boost over a set amount of time (in seconds), pass in a float for the desired boost length.                                                                |
| StopBoost()                      | Stops the rotorcraft from boosting, returning to a normal speed.                                                                                                      |
| SetPosition(Vector3, Quaternion) | Set the position and rotation of the Rotorcraft. This will also set the speed and turning to 0.                                                                       |
