9
3

aMilitiaguard.lua 511 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard2/aMilitiaguard.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.28 06:08:15
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 50, "InRange", "InRange")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. PlayersLevel = GetLevel(Spawn)
  19. SpawnSet(NPC, "level", PlayersLevel)
  20. end