How to fix "Accessed None..." error on Branch with Default CanBeDamaged condition?

Hello,
I am having an error "Accessed None trying to…’ on a Branch, which checks whether an object has CanBeDamaged set to true. If True, it Apply Damage, as shown in the attachment.


The object/actor (Stone node/Tree etc.) is set to CanBeDamaged=True and everything works fine when hit. However, when Tool hits anything else (air, static mesh with no CanBeDamaged value) it shows this error. I understand that it does not get the value from CanBeDamaged, but how to get rid of this error?

I guess you should check for the “Return value” output of the “Sphere Trace by Channel”. If it is false, I suppose there is no output object, explaining your error later on

1 Like

Yes, that’s it. :slightly_smiling_face: Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.