9
3

asiltstorm.lua 656 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/asiltstorm.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.05.09 08:05:19
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 8, "InRange")
  10. if GetSpawnLocationID(NPC) == 51471 then
  11. MovementLoopAddLocation(NPC, 9.46, 5.33, -69.46, 2, 0)
  12. MovementLoopAddLocation(NPC, 30.84, 4.48, -94.77, 2, 0)
  13. end
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function InRange(NPC, Spawn)
  22. Knockback(NPC, Spawn, 500, -100, 25) -- PUSH PLAYER UP FROM STORM
  23. end