Skip to content

Commit

Permalink
add docs to SET_VEHICLE_LIGHTS
Browse files Browse the repository at this point in the history
  • Loading branch information
coalaura committed Sep 8, 2024
1 parent 4a5b4ce commit 3a5553a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 11 additions & 13 deletions VEHICLE/SetVehicleLights.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@ ns: VEHICLE

```c
// 0x34E710FF01247C5A 0xE8930226
void SET_VEHICLE_LIGHTS(Vehicle vehicle, int state);
void SET_VEHICLE_LIGHTS(Vehicle vehicle, int setting);
```
```
set's if the vehicle has lights or not.
not an on off toggle.
p1 = 0 ;vehicle normal lights, off then lowbeams, then highbeams
p1 = 1 ;vehicle doesn't have lights, always off
p1 = 2 ;vehicle has always on lights
p1 = 3 ;or even larger like 4,5,... normal lights like =1
note1: when using =2 on day it's lowbeam,highbeam
but at night it's lowbeam,lowbeam,highbeam
note2: when using =0 it's affected by day or night for highbeams don't exist in daytime.
```cpp
enum eVehicleLightSetting {
NO_VEHICLE_LIGHT_OVERRIDE = 0,
FORCE_VEHICLE_LIGHTS_OFF = 1,
FORCE_VEHICLE_LIGHTS_ON = 2,
SET_VEHICLE_LIGHTS_ON = 3,
SET_VEHICLE_LIGHTS_OFF = 4
}
```

## Parameters
* **vehicle**:
* **state**:
* **vehicle**: The vehicle handle.
* **setting**: The vehicle light setting.

2 changes: 2 additions & 0 deletions VEHICLE/SetVehicleLightsMode.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ void _SET_VEHICLE_LIGHTS_MODE(Vehicle vehicle, int p1);
```
```
Could be SET_VEHICLE_HEADLIGHT_SHADOWS?

p1 can be either 0, 1 or 2.
Determines how vehicle lights behave when toggled.
0 = Default (Lights can be toggled between off, normal and high beams)
Expand Down

0 comments on commit 3a5553a

Please sign in to comment.