9
3

AFierceBandedArmadillo.lua 691 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/AFierceBandedArmadillo.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.14 10:01:12
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC)
  10. dmgMod = GetStr(NPC)/10
  11. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(18 + dmgMod))
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(32 + dmgMod))
  14. RandomMovement(NPC, Spawn, 8, -8, 2, 8, 15)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end