# Making a trigger-able texture

**URL:** <https://forums.unrealengine.com/t/making-a-trigger-able-texture/342289>\
**Category:** Character & Animation\
**Tags:** hud-blueprint, unreal-engine, level-blueprint, UE4, question, Blueprint\
**Created:** [December 23, 2015, 5:05pm UTC](https://forums.unrealengine.com/t/making-a-trigger-able-texture/342289 "2015-12-23T17:05:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PreetStar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PreetStar](https://forums.unrealengine.com/u/PreetStar)\
**Post date:** [December 23, 2015, 5:05pm UTC](https://forums.unrealengine.com/t/making-a-trigger-able-texture/342289/1 "2015-12-23T17:05:04Z")

</div>

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.

 ![71728-screenshot+(4).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/2/8423874e37e379b33ea34ab54f3304a2749ed12b.png)

and my HUD

 ![71729-screenshot+(6).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/1/081c6107022b89e47ddf355a2ec5ed2a83e005ce.png)

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

---

<div class="post-metadata">

**Author:** ![DevilsD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devilsd/32/890854_2.png) [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Post date:** [December 30, 2015, 10:18am UTC](https://forums.unrealengine.com/t/making-a-trigger-able-texture/342289/2 "2015-12-30T10:18:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![PreetStar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PreetStar](https://forums.unrealengine.com/u/PreetStar)\
**Post date:** [December 30, 2015, 4:08pm UTC](https://forums.unrealengine.com/t/making-a-trigger-able-texture/342289/3 "2015-12-30T16:08:58Z")

</div>

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!!

---

<div class="post-metadata">

**Author:** ![DevilsD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devilsd/32/890854_2.png) [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Post date:** [December 31, 2015, 12:05am UTC](https://forums.unrealengine.com/t/making-a-trigger-able-texture/342289/4 "2015-12-31T00:05:31Z")

</div>

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

Thank you. Good Luck.

---

<div class="post-metadata">

**Author:** ![PreetStar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PreetStar](https://forums.unrealengine.com/u/PreetStar)\
**Post date:** [February 3, 2016, 5:47pm UTC](https://forums.unrealengine.com/t/making-a-trigger-able-texture/342289/5 "2016-02-03T17:47:27Z")

</div>

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