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
Go to any airport.
Create any airplane and get in.
Run this code: (client-side)
setAnalogControlState ("vehicle_look_left", 1)
It doesn't work.
Then, run this code: (client-side)
setPedControlState ("vehicle_look_left", true)
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
setAnalogControlState ("vehicle_look_left", 1)
setPedControlState ("vehicle_look_left", true)
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