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"

Press E to open Widget, Press again to close

When overlap the box I can press E to see a widget. But how to remove the widget by pressing E again?alt text

Product Version: UE 4.16
Tags:
as.jpg (127.9 kB)
more ▼

asked Sep 25 '18 at 11:41 AM in Blueprint Scripting

avatar image

NewMan2332
28 2 2 9

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

First off, i dont have access to my pc so sorry, but first attach the end overlap to the close gate (gotta love being a smartass) but the way i do it is create the widget with beginplay and set it's visibilty to hidden. And from the gate exit do a flip flop with A setting the widget to visible and B setting it to invisible (cant remember the exact node but i think its set visibility) Hope this helps.

more ▼

answered Sep 25 '18 at 11:50 AM

avatar image

zamielGrimwalker
31 2 3

(comments are locked)
10|2000 characters needed characters left

at the most basic all you need is a flipflop and a remove from parent node. as shown in the example below, with a flipflop the first time you press the input key it uses the A pin and the second time the input is presses the B pin is used.

its pretty simple though there are a few things to note, first you probably want to promote the widget reference to a variable, once thats done you may want to switch from a flip flop to a isvalid? type setup for more advanced implementations.

alt text

capture.png (84.4 kB)
more ▼

answered Sep 25 '18 at 12:47 PM

avatar image

ThompsonN13
10k 33 8 23

avatar image NewMan2332 Sep 25 '18 at 01:16 PM

What about trigger box? How can make button available only insade the box ?

avatar image ThompsonN13 Sep 25 '18 at 02:09 PM

you could just add in a gate like your were doing, begin overlap open, end overlap close. or you could enable and disable input on overlap. heck you could even create and destroy the widget on overlap. its simple basic stuff.

(comments are locked)
10|2000 characters needed characters left
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