9
3

aMilitiaofficer55610.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/Freeport/aMilitiaofficer55610.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.04.27 07:04:26
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. movement_loop_start(NPC)
  10. end
  11. function movement_loop_start(NPC)
  12. MoveToLocation(NPC, 95.93, -20.13, 105.29, 2)
  13. MoveToLocation(NPC, 107.14, -19.95, 95.68, 2)
  14. MoveToLocation(NPC, 112.79, -19.30, 94.75, 2)
  15. MoveToLocation(NPC, 128.68, -16.11, 110.04, 2)
  16. MoveToLocation(NPC, 140.83, -16.05, 101.93, 2)
  17. MoveToLocation(NPC, 144.75, -16.05, 92.57, 2)
  18. MoveToLocation(NPC, 142.64, -16.08, 89.19, 2)
  19. MoveToLocation(NPC, 141.35, -16.11, 85.14, 2, "heading")
  20. end
  21. function movement_loop_continue(NPC)
  22. MoveToLocation(NPC, 142.64, -16.08, 89.19, 2)
  23. MoveToLocation(NPC, 144.75, -16.05, 92.57, 2)
  24. MoveToLocation(NPC, 140.83, -16.05, 101.93, 2)
  25. MoveToLocation(NPC, 128.68, -16.11, 110.04, 2)
  26. MoveToLocation(NPC, 112.79, -19.30, 94.75, 2)
  27. MoveToLocation(NPC, 107.14, -19.95, 95.68, 2)
  28. MoveToLocation(NPC, 94.94, -20.15, 105.12, 2, "heading2")
  29. end
  30. function heading2(NPC)
  31. SetHeading(NPC, 112.89)
  32. AddTimer(NPC, 7000, "movement_loop_start", 1)
  33. end
  34. function heading(NPC)
  35. SetHeading(NPC, 10.99)
  36. AddTimer(NPC, 7000, "movement_loop_continue", 1)
  37. end
  38. function hailed(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. AddTimer(NPC, 7000, "movement_loop_continue", 1)
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end