aMilitiaofficer55594.lua 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Freeport/aMilitiaofficer55594.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.02 09:05:17
  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, -119.92, -7.80, -115.08, 2)
  13. MoveToLocation(NPC, -95.39, -8.05, -103.14, 2)
  14. MoveToLocation(NPC, -61.40, -7.94, -107.71, 2, "heading")
  15. end
  16. function heading(NPC)
  17. SetHeading(NPC, 282.73)
  18. AddTimer(NPC, 7000, "movement_loop_continue", 1)
  19. end
  20. function movement_loop_continue(NPC)
  21. MoveToLocation(NPC, -95.39, -8.05, -103.14, 2)
  22. MoveToLocation(NPC, -119.92, -7.80, -115.08, 2)
  23. MoveToLocation(NPC, -121.81, -8.06, -119.58, 2, "heading2")
  24. end
  25. function heading2(NPC)
  26. SetHeading(NPC, 358.15)
  27. AddTimer(NPC, 7000, "movement_loop_start", 1)
  28. end
  29. function hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. AddTimer(NPC, 7000, "movement_loop_start", 1)
  32. end
  33. function respawn(NPC)
  34. spawn(NPC)
  35. end