Author Topic: Is it possible to edit explosion damage?  (Read 171 times)

Porksteak

  • Newbie
  • *
  • Posts: 16
    • View Profile
Is it possible to edit explosion damage?
« on: May 16, 2020, 08:04:11 pm »
Is it possible to make the default explosion do more damage?

Max

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Re: Is it possible to edit explosion damage?
« Reply #1 on: May 17, 2020, 05:53:52 am »
You could adjust how much damage enemies receive from specific sources of damage. With the enemy metatable, enemy:on_hurt gives you access to the attack received. So you can do like, if attack == "explosion" then enemy:remove_life(explosion damage)