AHardManToPleaseOrcsScript.lua 495 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Generic/AHardManToPleaseOrcsScript.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.21 09:05:35
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 50, "InRange")
  10. end
  11. function InRange(NPC, Spawn)
  12. if IsPlayer(Spawn) then
  13. Attack(NPC, Spawn)
  14. end
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end