SkatCh Posted May 30, 2014 Share Posted May 30, 2014 hi guys please how can i make an object turn around . i want this house icon (object ID : 1272) turn or rotate . Link to comment
.:HyPeX:. Posted May 30, 2014 Share Posted May 30, 2014 Why a pickup? just use setElementRotation Link to comment
WASSIm. Posted May 30, 2014 Share Posted May 30, 2014 if create pickup will turn around with not other funtion Link to comment
.:HyPeX:. Posted May 31, 2014 Share Posted May 31, 2014 Yeah, but it will still be a pickup, and not an object. Link to comment
Bssol Posted June 1, 2014 Share Posted June 1, 2014 local obj = createObject ( 1272, 0, 0, 0 ) function makeRotate ( ) local x,y,z = getElementPosition ( obj ) moveObject ( obj, 1000, x, y, z, 0, 0, 360 ) end setTimer ( makeRotate, 1000, 0 ) I recommand you to put it clientside, because serverside will cause lagg if you have a lot of objects to rotate. Link to comment
xXMADEXx Posted June 1, 2014 Share Posted June 1, 2014 local obj = createObject ( 1272, 0, 0, 0 ) function makeRotate ( ) local x,y,z = getElementPosition ( obj ) moveObject ( obj, 1000, x, y, z, 0, 0, 360 ) end setTimer ( makeRotate, 1000, 0 ) I recommand you to put it clientside, because serverside will cause lagg if you have a lot of objects to rotate. Timers aren't really a great thing to use... I'd recommend using onClientPreRender, and besides that, the makeRotate function is doing absolutely nothing... Link to comment
Bssol Posted June 1, 2014 Share Posted June 1, 2014 and besides that, the makeRotate function is doing absolutely nothing... Did you use the code?? 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