Beluga Posted November 18, 2010 Share Posted November 18, 2010 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
laserlaser Posted November 18, 2010 Share Posted November 18, 2010 (edited) SetTimer Replace it : moveObject(ufo1,10000,-353.2197265625,2187.2331542969,86.91221618523) setTimer(moveObject,timeto_oldposition(milisecond),1,ufo1,oldPositionX,oldPositionY,oldPositionZ) Good LUCK Edited April 25, 2011 by Guest Link to comment
Static-X Posted November 18, 2010 Share Posted November 18, 2010 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
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