Daniels69 Posted October 1, 2016 Share Posted October 1, 2016 (edited) Hello dear mtasa community, i have found an issue , i can't really set vehicle wheel rotation with setVehicleComponentRotation, they just don't rotate, other components do.. Some one knows where is the problem? --wheel_rb_dummy addEventHandler("onClientVehicleEnter", getRootElement(), function() local theVeh = getPedOccupiedVehicle(localPlayer) if (theVeh) then local rx, ry, rz = getVehicleComponentRotation(theVeh, "wheel_rb_dummy") --get the rotation of the component setVehicleComponentRotation(theVeh, "wheel_rb_dummy", rx, ry+10, rz) end end ) Edited October 1, 2016 by Daniels69 Link to comment
Captain Cody Posted October 1, 2016 Share Posted October 1, 2016 (edited) It's because the vehicle sets the wheel rotations itself. Edited October 1, 2016 by CodyL Link to comment
MrDante Posted October 1, 2016 Share Posted October 1, 2016 3 hours ago, Daniels69 said: Hello dear mtasa community, i have found an issue , i can't really set vehicle wheel rotation with setVehicleComponentRotation, they just don't rotate, other components do.. Some one knows where is the problem? --wheel_rb_dummy addEventHandler("onClientVehicleEnter", getRootElement(), function() local theVeh = getPedOccupiedVehicle(localPlayer) if (theVeh) then local rx, ry, rz = getVehicleComponentRotation(theVeh, "wheel_rb_dummy") --get the rotation of the component setVehicleComponentRotation(theVeh, "wheel_rb_dummy", rx, ry+10, rz) end end ) Use setVehicleHandling to rotate the wheels. Link to comment
Dealman Posted October 1, 2016 Share Posted October 1, 2016 (edited) As far as I'm aware you can not rotate the wheels by using setVehicleHandling. I would believe the wheels are managed by the engine and as such you can't really modify them. Maybe this is something that could be added as a feature request, I'm guessing it should be possible since the water riding cheat modifies the wheel rotation. Edited October 1, 2016 by Dealman Link to comment
Daniels69 Posted November 5, 2016 Author Share Posted November 5, 2016 i have seen this in many servers, you can do it some how , in the start i thought its some custom object which was put on the car, but then i saw the same on default gta sa cars too , so maybe some one knows how to do this? Link to comment
pa3ck Posted November 6, 2016 Share Posted November 6, 2016 Not sure what you need it for, but you can rotate the wheel with setAnalogControlState Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now