Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @inputs Plate:entity
- @outputs Fire
- @persist Gyro:angle Gyro2:angle
- runOnTick(1)
- if(first() | duped()){print("PeTeR Industries Inc.")
- print("Turrent is: On")}
- Me = owner()
- P = Plate:elevation(Me:aimPos()) # aqui pones lo que quieres que siga y tal
- Y = Plate:bearing(Me:aimPos())
- R = 1
- Gyro = -ang(P,Y,R)*500
- Plate:applyAngForce(Gyro + $Gyro*5)
- if(owner():isCrouch()== 1){Fire = 1}else{Fire = 0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement