VagaRico Posted August 25, 2021 Share Posted August 25, 2021 Quero que ele gire! local gate = createObject(13831, 1401.72900, -806.37512, 84.99246, 0, 0, 0) function girar () moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 10) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 20) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 30) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 40) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 50) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 60) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 70) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 80) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 90) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 100) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 110) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 120) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 130) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 140) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 150) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 160) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 170) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 180) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 190) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 200) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 210) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 220) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 230) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 240) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 250) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 260) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 270) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 280) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 290) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 300) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 310) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 320) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 330) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 340) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 350) moveObject(gate, 6000, 1401.72900, -806.37512, 84.99246, 0, 0, 360) end addEventHandler("onResourceStart", root, girar) Link to comment
Other Languages Moderators androksi Posted August 25, 2021 Other Languages Moderators Share Posted August 25, 2021 Olá! Tópico movido para a seção correta por se tratar de código Lua. Sobre a sua questão, nós temos dois cenários aqui. O primeiro seria rotacionar o objeto infinitamente; o segundo, rotacionar o objeto apenas quando alguém executar uma ação. Acredito que sua vontade seja rotacionar o tempo todo. Aqui esta um tópico sobre o assunto: 1 Link to comment
VagaRico Posted August 25, 2021 Author Share Posted August 25, 2021 Mano eu copiei seu exemplo mas não funcionou '-' 4 minutes ago, VagaRico said: Mano eu copiei seu exemplo mas não funcionou '-' peço desculpas meu script tava em server '-' mudei pra client desculpe 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