JeViCo Posted August 22, 2018 Share Posted August 22, 2018 Hello everyone! How can i make a vehicle turnin right or left without turning wheels? Is that possible? Link to comment
Discord Moderators Pirulax Posted August 22, 2018 Discord Moderators Share Posted August 22, 2018 setVehicleComponentRotation Link to comment
JeViCo Posted August 22, 2018 Author Share Posted August 22, 2018 13 minutes ago, Pirulax said: setVehicleComponentRotation when i use setAnalogControlState it doesn't help at all Link to comment
JustinMTA Posted August 22, 2018 Share Posted August 22, 2018 getElementRotationsetElementRotation Link to comment
Discord Moderators Pirulax Posted August 22, 2018 Discord Moderators Share Posted August 22, 2018 Sure, you can create objects, and set their position according to getVehicleComponentPosition. Link to comment
Hoffmann Posted August 22, 2018 Share Posted August 22, 2018 (edited) You could get vehicle's rotation with getElementRotation function and set wheels' rotation with setVehicleComponentRotation for each frame in onClientRender event so wheels will stay straight relative to your vehicle. Edited August 22, 2018 by NeverUnbeatable Link to comment
JeViCo Posted August 23, 2018 Author Share Posted August 23, 2018 9 hours ago, NeverUnbeatable said: set wheels' rotation with setVehicleComponentRotation for each frame in onClientRender event so wheels will stay straight relative to your vehicle i tried that. I also used onClientPreRender - same. 12 hours ago, Pirulax said: Sure, you can create objects, and set their position according to getVehicleComponentPosition. i've already maden that system. vehicleComponentRotation automatically changes after leaving the car. Problem solved with onClientVehicleStartExit + onClientVehicleEnter + setElementData + some calculations 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