x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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. alt text

and my HUD alt text

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

Product Version: UE 4.10
Tags:
screenshot (4).png (274.1 kB)
screenshot (6).png (202.9 kB)
more ▼

asked Dec 23 '15 at 05:05 PM in Blueprint Scripting

avatar image

PreetStar
1 1 3 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Dec 30 '15 at 10:18 AM

avatar image

DevilsD
887 57 17 52

avatar image PreetStar Dec 30 '15 at 04:08 PM

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

avatar image DevilsD Dec 31 '15 at 12:05 AM

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

Thank you. Good Luck.

avatar image PreetStar Feb 03 '16 at 05:47 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question