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
asked Dec 23 '15 at 05:05 PM in Blueprint Scripting
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.
answered Dec 30 '15 at 10:18 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here