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"

Function checking then event graph

So I have created a simple inventory on my default character class, I have a few functions one of them casts a raytrace line if it hits certain objects it will store them into my inventory now as soon as the raytrace hits a item I have a sound play that works fine but I want to call a widget to add a visual notification that the player has hit the object no I can easily cast a widget and remove it but I found out you cant use a delay in a function, so I need some way of knowing that something was added to my inventory so i can display the widget then wait 3 seconds then remove it all from my event graph.

Does anyone know a way to do this i'm not to good at understanding the variables but I suppose you would do it through that some how.

Product Version: UE 4.10
more ▼

asked Jan 14 '16 at 11:34 PM in Blueprint Scripting

avatar image

131 26 25 34

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

1 answer: sort voted first
more ▼

answered Jan 15 '16 at 12:23 AM

avatar image

474 24 21 51

avatar image Koaku Jan 15 '16 at 12:44 AM

yes that's perfect but I don't fully understand it I have attempted but i'm not sure if i have done it correct.

Function Blueprint https://gyazo.com/9963fb4cce3327345bd4a9891a6f81ce

Event Graph https://gyazo.com/e5da2f0b711a8cdd2eb0546554a18288

That's what I have don't but it doesn't work how could i fix this ?

avatar image RuBa1987 Jan 15 '16 at 12:52 AM

Ah, I see. Move your BindEventToRayTrace execution to something like your begin play execution path but still hook the red line up to the ray trace event. that should fix it.

Think of binding like calling set on a normal variable. You are telling the event dispatcher what method to call when it fires. If you put it where you have it then it never gets assigned because the ray trace event never gets called because you never assigned it to the dispatcher, chicken and egg problem.

I'm taking liberties with the explanation but that's the general notion.

avatar image RuBa1987 Jan 15 '16 at 12:55 AM

if you still have issues with it shoot me an email at russ@muttstudiogames.com and we can get on teamspeak or something and I can walk you through it. This is really easy once you understand the concepts.

avatar image Koaku Jan 15 '16 at 01:15 AM

Thank you so much it took me a few minuets of reading you comment over and over again until it clicked but I did this.(https://gyazo.com/7cbd740d533e02690df5fff711d932c8) and it worked fine thank you so much!

avatar image RuBa1987 Jan 15 '16 at 01:21 AM

That's what you need! good luck on the rest of it

avatar image RuBa1987 Jan 15 '16 at 01:22 AM

I also converted this to an answer so others can see how to do this. If you could accept the answer that would be greatly appreciated :-)

(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