Jani1337 Posted October 15, 2019 Share 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? Link to comment
root. Posted October 15, 2019 Share Posted October 15, 2019 ¿ Idea ? cancel the exit key toggleControl() Link to comment
Jani1337 Posted October 15, 2019 Author Share 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. Link to comment
#\_oskar_/# Posted October 15, 2019 Share Posted October 15, 2019 onVehicleStartExit cancelEvent Link to comment
Jani1337 Posted October 17, 2019 Author Share 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. Link to comment
Jani1337 Posted October 17, 2019 Author Share Posted October 17, 2019 imo it happens because of the jump out animation, and the detection not being fast enough 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