aMilitiaofficer55598.lua 1005 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Freeport/aMilitiaofficer55598.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.04.27 07:04:12
  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, 78.43, -20.16, 23.91, 2)
  13. MoveToLocation(NPC, 77.38, -20.18, 55.01, 2)
  14. MoveToLocation(NPC, 88.39, -20.18, 74.50, 2)
  15. MoveToLocation(NPC, 85.11, -20.24, 78.97, 2)
  16. MoveToLocation(NPC, 88.18, -20.19, 75.60, 2)
  17. MoveToLocation(NPC, 78.22, -20.17, 62.17, 2)
  18. MoveToLocation(NPC, 77.09, -20.20, 24.90, 2)
  19. MoveToLocation(NPC, 105.17, -19.17, 6.67, 2)
  20. MoveToLocation(NPC, 121.72, -17.22, -3.85, 2)
  21. MoveToLocation(NPC, 122.29, -17.16, -3.99, 2, "heading")
  22. end
  23. function heading(NPC)
  24. SetHeading(NPC, 290.12)
  25. AddTimer(NPC, 7000, 1, "movement_loop_start")
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. movement_loop_start(NPC)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end