#RooTs Posted June 14, 2016 Share Posted June 14, 2016 (edited) as I do to the vehicle, floor with this way? Edited June 14, 2016 by Guest Link to comment
Captain Cody Posted June 14, 2016 Share Posted June 14, 2016 Judging by how it turned, it's using move object with a table. Link to comment
#RooTs Posted June 15, 2016 Author Share Posted June 15, 2016 Judging by how it turned, it's using move object with a table. how to make ? Do you know ? I think any example will help me.... Link to comment
Captain Cody Posted June 15, 2016 Share Posted June 15, 2016 Here's an example (Untested) -- Table = {{x,y,z,r,1},{x,y,z,r,2},{x,y,z,r,3},{x,y,z,r,4}} -- 1,2,3,4,5 etc = position ; x,y,z,r = cords for said position Time = 5000 -- Put time you want it to take for each position here. Basically the speed. Object = -- Put car here. function trigger() for i,v in pairs(Table) do local x,y,z,r,p = Table[1],Table[2],Table[3],Table[4],Table[5] setTimer ( moveTheObject, p*time, 1,x,y,z,r,p) -- Set timer for when to move it.. end end function moveTheObject(x,y,z,r,p) local xr,yr,zr = getElementRotation(Object) moveObject (Object, Time,x,y,z,xr,yr,r) --- Actually do the move end Link to comment
#RooTs Posted June 19, 2016 Author Share Posted June 19, 2016 moveObject no work in vehicle Link to comment
roaddog Posted June 19, 2016 Share Posted June 19, 2016 Lets do some magic. objectMagic = createObject(...) -- create an object vehicleMagic = createVehicle(...) -- create vehicle to later attach with setElementAlpha(objectMagic, 0) -- magic starts attachElements ( vehicleMagic, objectMagic) -- yes make it stick to the object moveObject (objectMagic, ...) -- the magic happens Walah 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