Jump to content

How to move a vehicle in determinated time


Elmatus

Recommended Posts

Posted

Hi, I have a simple question

I was looking in the wiki, but I didn't find how to move a vehicle like you move an object. For example like how gravity gun does.

I tried the normal moveObject, but it didn't work

Posted
local vehicle = createVehicle( 405, x, y, z ) 
-- Change the vehicle position ' x, y, z ' 
local object = createObject( 964, x, y, z ) 
-- Change the object position ' x, y, z ' 
attachElements ( vehicle, object, 0, 0, 4 ) 
-- Attach vehicle to the object 
moveObject 
  

Posted

Ok that would work, I'll use it.

Just for doubt, how I make it to have a natural movement (gravity, etc)

Do I have to mess with the velocity and not the moveObject?

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...