Jump to content

MoveObject


Beluga

Recommended Posts

moveObject(ufo1,10000,-353.2197265625,2187.2331542969,86.91221618523) 

This code is working perfect but when the ufo reaches the second x,y,z

then it's not going back to his old position, so my question is

is there a function that makes it possible to move the ufo to

the second x,y,z and back and back and back etc. So it is moving all

the time?

Thanks! :)

Link to comment

here is an easy way of doing the same thing.

function moveUFO() 
    moveObject(ufo1,10000,-353.2197265625,2187.2331542969,86.91221618523) 
    setTimer(ufoMoveBack,10500,1) 
end 
  
function ufoMoveBack() 
    moveObject(ufo1,10000,x,y,z) 
    setTimer(moveUFO,10500,1) 
end 
  

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