Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. @inputs Plate:entity
  2. @outputs Fire
  3. @persist Gyro:angle Gyro2:angle
  4. runOnTick(1)
  5. if(first() | duped()){print("PeTeR Industries Inc.")
  6. print("Turrent is: On")}
  7. Me = owner()
  8.  
  9. P = Plate:elevation(Me:aimPos()) # aqui pones lo que quieres que siga y tal
  10. Y = Plate:bearing(Me:aimPos())
  11. R = 1
  12.  
  13. Gyro = -ang(P,Y,R)*500
  14.  
  15. Plate:applyAngForce(Gyro + $Gyro*5)
  16.  
  17. if(owner():isCrouch()== 1){Fire = 1}else{Fire = 0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement