• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

[Question] XML: A way to detect when you receive damage.

FringeRecall

New member
Hello,

I'm wondering if there is a way to "trigger_effect" when you receive damage of any kind. I don't see an "onSelfDamaged" or "onSelfReceiveDamage". I only see triggers for when you issue damage to someone/something else.

I do see "onSelfDamagedSelf" but I assume this means when you "shoot yourself in the foot" so-to-speak?

Thank you.

 
Hey there. I think the triggers you are looking for are:

onOtherDamagedSelf

and

onOtherAttackedSelf

I haven't played with these to confirm it, but I would imagine the first one is what you are actually looking for, as that comes across as "When any other thing damages you".

Do let me know if that helps :)

 
Back
Top