How can I check a damage source?

Hi I’m having a little trouble. With damage source. I want to do a specific thing when the damage source is fire. However I cannot figure out how to get it to test correctly.

This is how I’m causing the damage:

This is how I’m checking:

Thanks again.

Ed

Are you using multiplayer? If not, then why not create your own damage system.

  • Create an enum, with all types of possible types of damages: Fire, Weapon, Crush, Rock, Punch, …
  • Create an interface and a function wit inputs: damage type, damage value, …
  • Add the interface to whathever is going to receive the damage
  • The source of the damage sends message

Result:

Source of damage:

Receiver:

Thanks EvilCleric, however do you have any idea what I’m doing wrong. I totally agree this would work, however I need to show other people and it would be good to know the standard manner.

Actually figured it out! I just need to do the comparison using class!