TeleporterSecretPlace.lua 590 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/GMHall/TeleporterSecretPlace.lua
  3. Script Author : TyroneSWG
  4. Script Date : 2019.01.16 01:01:32
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 2, "TeleporterOutBound_InRange", "TeleporterOutBound_OutRange")
  10. end
  11. function TeleporterOutBound_InRange(NPC, Spawn)
  12. SetPosition(Spawn, 569.51, 98.23, 954.06)
  13. SendPopUpMessage(Spawn, "Whoosh!", 244, 66, 134)
  14. end
  15. function TeleporterOutBound_OutRange(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end