Jump to content

How to teleport a vehicle correctly?


kidul

Recommended Posts

Posted

Hey,

I just wanted to do a simple teleport for vehicles. But when i use the SetElementPosition function on the vehicle it jumps up to the air :S ... how can i avoid this ?

maybe some script examples would be nice :)

Posted

Freeze the vehicle for a second or 2, set its position and then after those 2 seconds unfreeze it.

setVehicleFrozen( vehicle, true );
setElementPosition( vehicle, x, y, z );
setTimer( setVehicleFrozen, 1500, 1, vehicle );

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...