AHardManToPleaseOrcsScript.lua 621 B

123456789101112131415161718192021222324252627282930
  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. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. Bloodskull(NPC)
  12. OrcArmorCommon(NPC)
  13. SetPlayerProximityFunction(NPC, 50, "InRange")
  14. end
  15. function InRange(NPC, Spawn)
  16. if IsPlayer(Spawn) then
  17. Attack(NPC, Spawn)
  18. end
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end