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

0 Members and 1 Guest are viewing this topic.

Porksteak
  • Newbie
  • *
  • Posts: 17
    • 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

  • Sr. Member
  • ****
  • Posts: 277
    • 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)