# 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.                                                                       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://arcdocs.enigma23.co.uk/script-properties/public-methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
