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"

Two events trigger

Trying to get it so that two events are needed to trigger the rest of the bp such as toggling visibility. Ideally i want my bp to trigger only if the hit event triggers AND the action button [E] is pressed.

I'm guessing i have to use a branch but i'm unsure of how to correctly establish my conditions.

alt text

Product Version: UE 4.12
Tags:
actionpress.png (92.5 kB)
more ▼

asked Jul 23 '16 at 02:25 PM in Blueprint Scripting

avatar image

SamWal
35 6 6 12

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

2 answers: sort voted first

alt text

more ▼

answered Jul 23 '16 at 02:35 PM

avatar image

Dark Energy
22 3 4 10

avatar image SamWal Jul 23 '16 at 02:58 PM

Thanks, but i'm not getting any feedback from my key press at all. I set up some print strings to debug and i always get a false result from the branch. i also setup a few print strings to check my keypress and it's not registering on a whole, i dont get any response from pressing that key.

avatar image Dark Energy Jul 23 '16 at 03:04 PM

Maybe you have to enable colision to make the key work. And can you show me when event 0 hit event is called?

avatar image SamWal Jul 23 '16 at 03:14 PM

I have a standard linetrace coming from my camera and when it collides with an object it checks if that object has the interface "Hit Event" attached to it, if it does then it starts that function, ifnot nothing happens.

alt text

What i'm trying to get working is, if i'm looking at an object, a prompt appears. If i'm looking at AND pressing [E] then another event happens .

functioncall.png (119.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
more ▼

answered Jul 23 '16 at 03:19 PM

avatar image

Dark Energy
22 3 4 10

(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