9
3

TeleporterGMHall.lua 589 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/GMHall/TeleporterGMHall.lua
  3. Script Author : TyroneSWG
  4. Script Date : 2019.01.16 05:01:35
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 2, "TeleporterBackOutBound_InRange", "TeleporterOutBackBound_OutRange")
  10. end
  11. function TeleporterBackOutBound_InRange(NPC, Spawn)
  12. SetPosition(Spawn, 698.56, -33.93, 1495.80)
  13. SendPopUpMessage(Spawn, "Taking you back...", 244, 66, 134)
  14. end
  15. function TeleporterBackOutBound_OutRange(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end