Jump to content

move an object all time.


DYNAMO

Recommended Posts

i can move an object from 1 place to other and by code.

but i dont know how to move an object all time from 1 place to another all time without code. something like.

i want to move an airplane model around a place all time.

can you give me the sample.

Link to comment
Test = createObject ( 0, 0, 0, "cylinder", 2, 255, 255, 0, 255 ) 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
setTimer(function() 
moveObject(Test,2000,0,0,20) -- Makes the object goes up 
end,5000,0) 
setTimer(function() 
moveObject(Test,2000,0,0,0) -- Makes the object return to default position 
end,10000,0) 
end) 

Link to comment
Test = createObject ( 0, 0, 0, "cylinder", 2, 255, 255, 0, 255 ) 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
setTimer(function() 
moveObject(Test,2000,0,0,20) -- Makes the object goes up 
end,5000,0) 
setTimer(function() 
moveObject(Test,2000,0,0,0) -- Makes the object return to default position 
end,10000,0) 
end) 

then argument marker not object

Test = createObject ( 0, 0, 0, "cylinder", 2, 255, 255, 0, 255 ) 

Become well

 Test = createObject( id, x, y, z ) 

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