Guest User

Untitled

a guest
Dec 20th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. function angledGun:rotateAngledGunUp()
  2. local rotateUp -- like this you mean?.. doesnt seem to work here.
  3.  
  4. function rotateAngledGunDown()
  5. if self.display.rotation > 0 then
  6. self.display.rotation = self.display.rotation - .5
  7. rotateUp = false
  8. else
  9. rotateUp = true
  10. end
  11. end
  12.  
  13.  
  14. if self.display.rotation < 45 and rotateUp == true then
  15. self.display.rotation = self.display.rotation + .5
  16. else
  17. rotateAngledGunDown()
  18. end
  19. --if I put it down here it works for one of the objects, but if I create more than one I have the --same problem
  20. end
Advertisement
Add Comment
Please, Sign In to add comment