Hi everyone, I’m having trouble creating a good character blueprint. I’m using a parent blueprint named “Equipment Character” which have many variables like “Current health”, “Max health” etc. but this blueprint was not going to be used a my IG character, it was only to store those variables to pass on to its child BP.
I thought it was the best way to do my blueprint and then create childs of it once I want to create another character, but I’m having trouble when it comes to apply damage to its child.
-
My character is correctly referenced in the “Equipment character” blueprint as seen here : https://i.imgur.com/IG3j92L.png
-
My Child BP Character "Event AnyDamage " pass the variables to the Equipment Character : https://i.imgur.com/wdyvq0w.png
Here’s how I set it up in the Equipment Character BP : https://i.imgur.com/CPULEG8.png -
When the character is damaged like this : https://i.imgur.com/6c6Kpcd.png
I get errors like “Error Blueprint Runtime Error: Accessed None trying to read property blablabla”.
I don’t get this error if I don’t use the child BP health variables but the Equipment character one, but once I have multiple characters it will be a problem. I don’t know how to fix, please someone have at least an idea on how to solve this ? Thanks !