Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docs to SET_VEHICLE_LIGHTS #1187

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to just rename this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not entirely sure about the name, was just a guess since its location kinda lined up, functionality wise i didn't test it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better off just not changing the file then imo.


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
Loading