Changing variable on right mouse click

I am trying to set a static mesh to change material by variable so when it is true it is blue and when it is false it is orange. I have the system set up for that. Image here: https://gyazo.com/b7cd644380087343e88fe82bbdab9266
I have done a test to see if this is working: https://gyazo.com/dce412b613c0d066fbcc110aff474083
which it is but when I try to do this using this in my character: https://gyazo.com/c19f1d44a972a5653a5de6caac34d60e
It doesn’t work, most likely the fault of me not knowing how to use casting properly but I also simplified it and placed it in the bullet blue print instead: https://gyazo.com/eefa426015b8aa69943b59088fc87cb0 and it doesn’t work either. Any ideas?

Does the actor allow input?
If it doesnt allow input the right click will not be registerd.

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/ActorInput/Blueprints/

Use the node “Enable Actor Input” and you don’t need to use a switch this way. There is a node specific for toggle things called Flip/Flop