Jani1337 Posted October 15, 2019 Posted October 15, 2019 Hello! I've been working on a script that teleports you to the last saved position when you fall into water with your car. That works great, but i would like to make it teleport you to the nearest road, as if you fall thru the ground, how could i do that? Teleporting the car under the map works, but then players can glitch out if they press F in the wrong moment. Any ideas/help?
Jani1337 Posted October 15, 2019 Author Posted October 15, 2019 4 hours ago, Rut said: ¿ Idea ? cancel the exit key toggleControl() Doesn't work, if they press it just before it happens it still bugs out.
Jani1337 Posted October 17, 2019 Author Posted October 17, 2019 On 15/10/2019 at 18:21, #\_oskar_/# said: onVehicleStartExit cancelEvent works well most of the times, but if they spam the get out button before hitting the water it still bugs out.
Jani1337 Posted October 17, 2019 Author Posted October 17, 2019 imo it happens because of the jump out animation, and the detection not being fast enough
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