#RooTs Posted June 14, 2016 Posted June 14, 2016 (edited) as I do to the vehicle, floor with this way? Edited June 14, 2016 by Guest
Captain Cody Posted June 14, 2016 Posted June 14, 2016 Judging by how it turned, it's using move object with a table.
#RooTs Posted June 15, 2016 Author 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....
Captain Cody Posted June 15, 2016 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
roaddog Posted June 19, 2016 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
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