Boolean not being read by character blueprint from widget

I have a spell button implemented inside a widget. When the spell button is clicked, it sets “fire” to true and if clicked again, it sets the “fire” to false. Inside the character blueprint, I have a branch to check if “fire” is true; if it is, it fires a custom projectile. The problem is that the character blueprint always reads the boolean as false and does not fire. Just to make sure the projectile and everything else wasn’t the problem, I set the default value of “fire” to true and it fires; so, the widget and the blueprint must not be communicating. Any help would be greatly appreciated. Thank you!

Attached are screenshots of the widget and the character blueprint.

Have you remembered to set the reference to your Cleric Player to a value? You will get accessed none errors if youre attempting to assign a variable through none so thats something to check for just incase, cool.

Are you able to provide an image depiction of your stated answer? I made the cleric bp reference inside the widget in order to set the boolean “fire” to true when clicked. Are you talking about something else? Thank you for responding!

125156-newcharacter1.jpg

Now this might seem basic and straight forward but its possible that you havent assigned a value to the reference to actually be accessing. Its hard to know whats going on with only small cuts of what youre doing.

Typically for a widget in UMG you assign the Character reference to the Owner when you Construct it, obviously you need to check that it actually has a valid reference too.

I highly recommend checking your log and using PrintString to try and find out if your chain of events is actually firing correctly.

I added a print string to my widget after “fire” is supposed to be set by clicking the button and it doesn’t print the string. I double checked the character reference and I’m generating no errors. It has a valid reference to my character blueprint.

Ok, I’m losing my mind. I set up a test project. With the initial first person character, it correctly referenced the blueprint and everything worked. I duplicated the blueprint and named it cleric. Set the reference inside the widget to cleric and it doesn’t work.