alestane icon

Simplfied auto-rotate

alestane | PRO | 12/20/12 07:54:26 PM UTC | 0 ⭐ | 412 👁️ | Never ⏰ | []
Lua |

230 B

|

None

|

0 👍

/

0 👎

function angledGun:rotateAngledGunUp()
    self.TurnSpeed = self.TurnSpeed or 0.5
    if self.display.rotation < 0 or self.display.rotation > 45 then
        self.TurnSpeed = -self.TurnSpeed
    end
    
    self.display:rotate(self.TurnSpeed)
end

Comments