APudgyMoleRat.lua 812 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/APudgyMoleRat.lua
  3. Script Author : Cynnar
  4. Script Date : 2019.06.03 03:06:48
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. CallCliffdiverHawk(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. end
  16. function CallCliffdiverHawk(NPC)
  17. local CliffdiverHawk = GetSpawn(NPC, 2780077)
  18. if CliffdiverHawk ~= nil then
  19. if GetTempVariable(NPC, "MoleRat") == nil then
  20. SetTempVariable(CliffdiverHawk, "MoleRat", NPC)
  21. SetTempVariable(CliffdiverHawk, "MOLERAT_X", GetX(NPC))
  22. SetTempVariable(CliffdiverHawk, "MOLERAT_Y", GetY(NPC))
  23. SetTempVariable(CliffdiverHawk, "MOLERAT_Z", GetZ(NPC))
  24. AddTimer(CliffdiverHawk, 2000, "FlyToMoleRat")
  25. end
  26. end
  27. end