Elmatus Posted March 29, 2015 Share Posted March 29, 2015 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 Link to comment
ahmedo01 Posted March 30, 2015 Share Posted March 30, 2015 Create an object then attach vehicle to object and move object. Link to comment
nxFairlywell Posted March 30, 2015 Share Posted March 30, 2015 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 Link to comment
Elmatus Posted March 30, 2015 Author Share Posted March 30, 2015 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? 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