I thought about checking for "health > 0", but I'm not sure this is the right way.
I wanna give all actors that can reasonably expected to be damaged a certain item when they are spawned. I could check
Code: Select all
if (event.thing is "PlayerPawn" || event.thing.bISMONSTER)
but that would leave out explosive pods, which also can be damaged and destroyed, and later I could add more destructible environment objects. Of course, I could just add all their classes to that condition, but before doing that I thought I should ask. Maybe there is a cover-all solution for all damageable actors.