Code: Select all
if (e.inflictor/damage source/target != null) {other actions}
Moderator: GZDoom Developers
Code: Select all
if (e.inflictor/damage source/target != null) {other actions}
That's the problem: We are just guessing.Arctangent wrote:I'm pretty sure...
That's not correct. It has to be:Code: Select all
if(ticks >= 150){owner.a_die(); self.destroy(); return;}
Code: Select all
if(ticks >= 150){ if (owner != null) owner.a_die(); self.destroy(); return;}
Code: Select all
if (e.Thing.Target) { e.Thing.Target.giveinventory("healthbonus", 1); }