# llSetVehicleRotationParam

*LSL function*

```lsl
void llSetVehicleRotationParam(integer param, rotation rot);
```

- `integer param`: VEHICLE_* rotation parameter constant to set.
- `rotation rot`: Rotation value to set.

- Energy: 10

Sets the specified vehicle rotation parameter param to rot.

Sets the vehicle rotation parameter **param** to **rot**.

```lsl title="How to use" frame="terminal"
llSetVehicleRotationParam(0, ZERO_ROTATION);
```

## Specification

| Constant |  | Type | Description |
| --- | --- | --- | --- |
| [VEHICLE_REFERENCE_FRAME](/constants/VEHICLE_REFERENCE_FRAME/) | 44 | [rotation](https://wiki.secondlife.com/wiki/rotation) | rotation of vehicle axes relative to local frame |

## Examples

The reference frame can be computed and set in two steps:

- Place the vehicle with front facing east(red arrow) and with left side facing north(green arrow)
- [llSetVehicleRotationParam](/functions/llSetVehicleRotationParam/)( [VEHICLE_REFERENCE_FRAME](/constants/VEHICLE_REFERENCE_FRAME/), [ZERO_ROTATION](/constants/ZERO_ROTATION/) / [llGetRootRotation](/functions/llGetRootRotation/)());

## See also

### Functions

- [llSetVehicleFloatParam](/functions/llSetVehicleFloatParam/) — Sets a vehicle float parameter
- [llSetVehicleVectorParam](/functions/llSetVehicleVectorParam/) — Sets a vehicle vector parmeter

### Articles

- [Linden Vehicle Tutorial](https://wiki.secondlife.com/wiki/Linden_Vehicle_Tutorial)

---

*Source: [LlSetVehicleRotationParam](https://wiki.secondlife.com/wiki/LlSetVehicleRotationParam) on the Second Life Wiki. Content from the Second Life Wiki articles LlSetVehicleRotationParam (revision 1193478, 2014-09-17) and Template:LSL Constants/Vehicle (revision 1212771, 2022-11-16), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llSetVehicleRotationParam/
