A problem I've had with my score system

Do you have two different classes both named Avoidance? That’s the only thing I can think of to explain the error message.

So I have a scoring system set up where over time the score climbs It works good but It doesn’t stop when the player is killed. I thought using a branch with the condition “Is dead” and false being true making it climb would work but when I call the Is dead from the blueprint where my character is killed, the target won’t accept me referencing the blueprint where the player is killed.

I’m not sure what I’m doing wrong or what I need to do to fix it but I can’t think of anything else. I need help.

No matter what I do it always tells me that the reference is incompatible, What am I doing wrong?

select object asset

I just put that together fast so I could have a screen shot to show but either with the object asset selected it doesn’t work.

No but Avoidance is my level blueprint, do you think that might cause a problem? Because I have the level called that and also the level blueprint?

I have no idea how to do the last part. So I add an IsDead bool to my Player_Score class and delete the other one, then where would I go from there?

I’ve set it up how you have it, but what’s plugged into get all actors of class? Like, what’s before it?

I might suggest that you change your approach somewhat. Move the IsDead property over to the Player_Score class and send it a notification when the player dies.

You could add a custom event to the Player_Score class that can be called to notify it.

67700-customevent.jpg

Then when the player dies you could trigger it like this

That would be the execution wire from whatever originally tells your game that the player has died.

For example you could insert this group into the part of the graph that used to be setting IsDead to true in the level blueprint.

Don’t know if you saw my last message, but ignore it, when I copied your section of the code to the right blueprint it didn’t bring the event at the end and when I plugged it back in I only plugged in the reference to the other blueprint and not the get. Thanks a lot for your help man, it’s working now. I’d accept your answer as correct but it’s not an answer.

Seriously, though thank you so much I’ve had so much trouble with that these past few days you’re a life saver!!

Awesome, glad you got it working :slight_smile: