Arshin Posted March 18, 2020 Share Posted March 18, 2020 Hey guys. Do you have an idea for add loop for moveObject ? Thanks. Link to comment
Moderators Patrick Posted March 18, 2020 Moderators Share Posted March 18, 2020 What do you think? Link to comment
Arshin Posted March 18, 2020 Author Share Posted March 18, 2020 5 minutes ago, Patrick said: What do you think? I think how can i rotate object continuously. Link to comment
Moderators Patrick Posted March 18, 2020 Moderators Share Posted March 18, 2020 local object = createObject(id, x, y, z) moveObject(object, 5000, x, y, z, 0, 0, 360) -- rotate with 360, takes 5 sec setTimer(moveObject, 5000, 0, x, y, z, 0, 0, 360) -- after 5 sec, rotate it again (in every 5th sec) Or rotate it with setElementRotation 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