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. 

Is there a "reverse branch" node that works kind of like Select?

I'm looking for a type of node that basically does the opposite of Branch--basically it has two execution inputs, one execution output, two wildcard inputs, and one wildcard output of the same type. When it is executed through exec input A, it returns the value given in wildcard input A, and same with B. Perhaps you could also add more inputs if you want. If the wildcard inputs are true and false, it would basically be an exact opposite of the Branch node.

Does such a node exist? I looked in Utility>Flow Control and couldn't find anything that looks like what I want.

EDIT: Basically I'm looking for something that would serve the purpose of this macro, only that will work for any type without having to create multiple macros. I know macros can have wildcard inputs/outputs, but that wouldn't work in this case because (to my knowledge) local variables can't be wildcards. Plus I'd rather not use a macro if there's a built-in function that serves the same purpose.

macro

Product Version: Not Selected
Tags:
untitled.png (64.5 kB)
more ▼

asked Mar 06 '15 at 08:10 PM in Blueprint Scripting

avatar image

flarn2006
21 3 5 8

avatar image JoystickMonkey May 26 '15 at 09:03 PM

I would love to see something exactly like this. Having a Local Wildcard in macros would allow this to be easily done.

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

2 answers: sort voted first

img Here is your solution. It took me a little bit of time to figure it out, but then I saw a video with someone using a selector and it all clicked. In order to get the checkboxes in the "Assign" nodes, drag a line from the Local Bool and then type "assign" in the context sensitive space.

You could also do a similar thing with more inputs and use a selector by int.

inputselector.png (107.2 kB)
more ▼

answered Jul 08 '15 at 07:11 PM

avatar image

JoystickMonkey
93 4 8 13

avatar image flarn2006 Jul 08 '15 at 07:24 PM

Wow, I hadn't thought of using Select. It's surprising this even needs a macro though. Thanks!

avatar image JoystickMonkey Jul 08 '15 at 07:59 PM

Agreed. I'd really like this to be a standard flow control node with an "Add pins" option

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

As I am fairly sure there is no such thing, I think this might work for what you want..

alt text

doonce_multi.jpg (67.0 kB)
more ▼

answered Mar 06 '15 at 08:59 PM

avatar image

Purecyn
466 9 7 14

avatar image flarn2006 Mar 06 '15 at 09:01 PM

But wouldn't that then only execute once? And why couldn't you just wire the execution directly to the next node instead of through the DoOnce?

avatar image Purecyn Mar 06 '15 at 09:07 PM

You can reset it with the reset exec after you do whatever logic you need to do against the output. The DoOnce just stops any further execution output until your done with working with the result. Perhaps I am completly missing what you want. If it is a True/False you are looking for, that can only have 2 inputs. And to do that you just crate a bol variable and set that to the output instead of some refernce like I have and lose the event inputs.

Edit: Something like this could work as well. but it's little in the way of flow control or multi-input.

alt text

aorb.jpg (62.4 kB)
(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