SkatCh Posted May 30, 2014 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 .
WASSIm. Posted May 30, 2014 Posted May 30, 2014 if create pickup will turn around with not other funtion
.:HyPeX:. Posted May 31, 2014 Posted May 31, 2014 Yeah, but it will still be a pickup, and not an object.
Bssol Posted June 1, 2014 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.
xXMADEXx Posted June 1, 2014 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...
Bssol Posted June 1, 2014 Posted June 1, 2014 and besides that, the makeRotate function is doing absolutely nothing... Did you use the code??
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