Setting intergers from widget??

This is for my weapon selection system, I’m trying to change the value of interger based on a button thats been pressed in a widget. The picture shows my current method i’m trying with no results

Am I missing something really stupid here? Many thanks

What’s the class of Player? Put a print text node after Cast Failed. Does it print?

Do a print string on Cast Failed, and see if the cast is failing.