DjSt3rios Posted July 26, 2011 Share Posted July 26, 2011 Hello, I Need some help, Although im not sure if it can be fixed, but Here the problem: There is a downhill road in my map, and i made a code which rotates the car all the time plveh = getPedOccupiedVehicle(getLocalPlayer()) if plveh and getVehicleName(plveh) == "Infernus" then rx1,ry1,rz1 = getVehicleRotation(plveh) setVehicleRotation(plveh, rx1, ry1, rz1+20) end So, it sets the rotation +20 normally, But because its downhill, it crashes some time with the road, I dont know if you get it.. In a straight road works fine, but here is downhill.. so could we fix it somehow? thanks. Link to comment
bandi94 Posted July 26, 2011 Share Posted July 26, 2011 you can try to bring the car litel up whit modifi car z position or i don't know how Link to comment
DjSt3rios Posted July 26, 2011 Author Share Posted July 26, 2011 Hmm, thats what i tried buddy anyway, i think i will make it, thanks anyway Link to comment
Jaysds1 Posted July 26, 2011 Share Posted July 26, 2011 if this is a race then, try: plveh = getPedOccupiedVehicle(getLocalPlayer()) if plveh and getVehicleName(plveh) == "Infernus" then rx1,ry1,rz1 = getVehicleRotation(plveh) setVehicleRotation(plveh, rx1, ry1, rz1+20) setVehicleFrozen(plveh,true) end Link to comment
DjSt3rios Posted July 26, 2011 Author Share Posted July 26, 2011 I doubt that it will work, but still the car will stop with this way 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