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

setAnalogControlState isn't working #3070

Open
1 task done
Lord-Henry opened this issue Jun 17, 2023 · 2 comments
Open
1 task done

setAnalogControlState isn't working #3070

Lord-Henry opened this issue Jun 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Lord-Henry
Copy link
Contributor

Lord-Henry commented Jun 17, 2023

Describe the bug

This only happens on airplanes and helicopters.
The setAnalogControlState function returns false and doesn't work when using the control name "vehicle_look_left", "vehicle_look_right" on an airplane.

This is because those controls uses by default "true/false" behaviour on land vehicles to control de camera.
But on airplanes, it controls the airplane rudder angle to make the airplane go left/right while on ground. In this situation, the analog control should work so the plane can perform a more precise curve.

The function setControlState works normally at this situation. But it's not a precise control.

Steps to reproduce

  1. Go to any airport.
  2. Create any airplane and get in.
  3. Run this code: (client-side)
    setAnalogControlState ("vehicle_look_left", 1)
  4. It doesn't work.
  5. Then, run this code: (client-side)
    setPedControlState ("vehicle_look_left", true)
  6. Now works.

Version

Client: v1.6-release-21852
Server: v1.6-release-21852

Windows 10 - Home

Additional context

The same on helicopters.
setAnalogControlState doesn't work using those control names, but setPedControlState works.

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@Lord-Henry Lord-Henry added the bug Something isn't working label Jun 17, 2023
@Lord-Henry Lord-Henry changed the title setAnalogControlState doesn't working setAnalogControlState isn't working Jun 17, 2023
@TracerDS
Copy link
Contributor

vehicle_look_left is not a valid analog control. Thats why its returning false.
List of all valid analog controls here

@Lord-Henry
Copy link
Contributor Author

Lord-Henry commented Jun 27, 2023

I know. But it should be valid while on airplane or helicopter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants