Jump to content

Help about moving object


Recommended Posts

Hello i try to create a script which is let me to move a boat to A to B position which is working fine , but i want that when the object was get that position then turn back and come back to the starting position ;) but i dont have an idea how :(

local x, y, z = 405.10000610352, -2130.3000488281, 17.200000762939, 0, 0, 180 
  
local hajo = createObject( 8493, x, y, z, 0, 0, 180) --ID,X,Y,Z --tavolodo 
--local hajo2 = createObject( 8493, 405.10000610352, -2260.3000488281, 17.200000762939,0, 0, 180) --ID,X,Y,Z --tavolodo 
  
  
  
  
function indulas() 
     
        moveObject(hajo, 15000, 405.10000610352, -2230.3000488281, 17.200000762939) -- when reach this position then make a 180 turn and come back to the starting position. 
end 
setTimer(indulas, 1000, 1, "") 
addCommandHandler("1", indulas) 

Link to comment

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