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. 

Two Events for one Outcome

Hello, I'm very new to blueprints and Unreal Engine in general, so please excuse my lack of knowledge. I was trying to make it so that two events are required for an outcome to be executed. How do you do that?

Thank you.

Product Version: UE 4.12
Tags:
more ▼

asked Jun 05 '16 at 03:57 PM in Blueprint Scripting

avatar image

TalkingIsGreat
43 12 15 20

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

3 answers: sort voted first

Np, that's what answerhub is for! :)

So you probably want to do this using AND boolean node and a branch. Tell a bit more what you want to achieve?

more ▼

answered Jun 05 '16 at 04:03 PM

avatar image

Derzo
691 28 8 50

avatar image TalkingIsGreat Jun 05 '16 at 09:50 PM

I have an overlap event in a blueprint for one of my sprites, and it casts to a custom event in a character that flip flops an HUD on and off of the screen. So far, I can get it so that when you come within the bounds the HUD comes on, and comes off when it leaves the bounds by having an End Overlap and a Begin Overlap. However, I would like the HUD to pop up only if you click my sprite and are within the bounds.

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

Events are fired and executed until it finish, and nothing happens after its end.

You may use bool variable in your events, something like each event his variable, and check if the other bool is already checked. (I don't really know what you want to do)

more ▼

answered Jun 05 '16 at 06:54 PM

avatar image

mdonge
830 31 12 38

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

So you can do something like : the begin/endOverlap event set a bool variable to true/false in the character BP, if the player is in the bounds. And if the player click on the sprite, the event fired by the sprite check this bool variable and add or remove your HUD

more ▼

answered Jun 06 '16 at 01:00 AM

avatar image

mdonge
830 31 12 38

avatar image TalkingIsGreat Jun 06 '16 at 02:59 AM

alt text Tell me what I'm doing wrong, please.

untitled.png (329.1 kB)
avatar image mdonge Jun 06 '16 at 04:54 PM

the "other actor" node from "ActorEndOverlap" can't be connected to something outside his exec chain ... If BP_Character is the pawn of the player, you can use something like "get player pawn"

avatar image TalkingIsGreat Jun 06 '16 at 07:19 PM

I tried both "get player pawn" and "get player character", but to no avail. I decided to cut and paste the cast to this blueprint. For testing purposes, I replaced the click with E input. I can't get the clicking to work. Is there something that I'm missing?alt text

untitled.png (475.1 kB)
avatar image mdonge Jun 06 '16 at 08:06 PM

Does it works with E ? Is A_OldMan_BP your player pawn ? or what's the aim of the "enable input" ? I don't understand your "Sequence -> branch" in your "EndOverlap"

avatar image TalkingIsGreat Jun 06 '16 at 11:54 PM

Yes, it works with E. OldMan_BP is not my player pawn, it's just an actor in the game that the character interacts with (I think). Enable input allows E to work. The branch determines whether or not to send an execution based on whether or not the character is overlapping.

avatar image mdonge Jun 07 '16 at 01:39 PM

If it works with E, it's the OnClicked the problem ... Maybe it's not the good actor which is firing this event, or something must be configurated somewhere else ...

(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