DYNAMO Posted May 21, 2014 Share Posted May 21, 2014 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
DYNAMO Posted May 21, 2014 Author Share Posted May 21, 2014 im a noob can you give a sample. Link to comment
justn Posted May 21, 2014 Share Posted May 21, 2014 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
</Mr.Tn6eL> Posted May 21, 2014 Share Posted May 21, 2014 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
xXMADEXx Posted May 21, 2014 Share Posted May 21, 2014 It's not hard to simply click the wiki links: setTimer/moveObject to get examples.. The wiki pages explain everything. 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