Cobra_Tomtrein-temp-

Untitled

May 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. local function fire(entity)
  2. local x, y, z = entity.x, entity.y, entity.z
  3. local pitch = -math.atan2(y, math.sqrt(x * x + z * z))
  4. local yaw = math.atan2(-x, z)
  5.  
  6. modules.fire(math.deg(yaw), math.deg(pitch), 5)
  7. sleep(0.2)
  8. end
Advertisement
Add Comment
Please, Sign In to add comment