adefiledsoldier.lua 686 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/adefiledsoldier.lua
  3. Script Author : Rylec
  4. Script Date : 2020.12.10 09:12:00
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. -- SpawnSet(NPC, "action_state", 13016)
  10. SetSpawnAnimation(NPC, 13016)
  11. SetActionState(NPC, Spawn)
  12. end
  13. function SetActionState(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. SpawnSet(NPC, "action_state", 4009)
  16. AddTimer(NPC, 5000, "ResetState")
  17. end
  18. function ResetState(NPC)
  19. SpawnSet(NPC, "action_state", 0)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end