Advertisement
Marlingaming

Artillery Fire Script

Sep 27th, 2021
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local TargetI = 1
  2. local TargetX = nil
  3. local TargetY = nil
  4. local TargetZ = nil
  5. local TargetDistance = nil
  6. local ReqAzimuth = nil
  7. local ReqElevation = nil
  8. local GunVeloicty = nil
  9.  
  10. function GetTarget()
  11. for i = 1, #TargetInfo.Priority do
  12. if TargetInfo.Priority[i] > TargetInforPriority[I] then
  13. TargetI = i
  14. end
  15. end
  16. CalculateReq()
  17. end
  18.  
  19. function CalculateReq()
  20. local Tar = TargetInfo.Position[I]
  21. TargetX = Tar[1]
  22. TargetY = Tar[2]
  23. TargetZ = Tar[3]
  24. ControlGun()
  25. end
  26.  
  27. function ControlGun()
  28.  
  29. end
  30.  
  31. GetTarget()
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement