Making a trigger-able texture

I am trying to make a trigger-able texture by drawing it in a HUD and calling it when i call a variable in my character blueprint.

The Following is a pic from my level blueprint in which i call the function from a blueprint interface.

and my HUD

This setup is not working when i call the variable in game… can anybody help me figure out what i am doing wrong?
Thank You

Are you attempting to be able to show and hide the Crosshairs as the player aims in and out of his weapon?

If so you need to rethink your logic. Event BeginPlay is only called once when play begins on the level. So in essence it takes a snapshot of your AimButtonDown boolean variable at that particular frame. It is not capable of detecting when that variable changes.

If you manually change that variables value on your Player, you should see how it affects the drawing of the crosshairs.

You need to change your logic such that, when the player uses an input event (Right mouse button for example) to aim down their sights, this is where it would be more appropriate to decide to show or hide the crosshairs.

Oh yea!!! thank you so much… i thought the event begin play just keeps on firing till the end of game… Well thank you for correcting me!!

Can you accept this answer as correct to close this ticket please.

Thank you. Good Luck.

oops i am sorry for the late reply. New to UE4 dint knew have to do that :stuck_out_tongue:
Yea i am happy with the answer to close the ticket.