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"

Widget Button To Fire Continuously

Hi all,

Another hopefully simple question.

I have buttons in a widget to rotate an actor in my scene, I have them set up on pressed to add 10 degrees and pass that on to the actor BP to update the rotation via custom events.

I was hoping however to try have it so once the button is held down the object would continually add 1, send that through the custom event, delay and loop over till I released the button.

I had some loops set up but wasn't getting a result, I even had an "infinite loop" warning in one method I tried.

Would anyone be able to spout a method off from the top of their head?

Many thanks and I'll post images of my BP once I've tried some more.

Product Version: UE 4.21
Tags:
more ▼

asked Mar 30 '19 at 08:13 PM in Blueprint Scripting

avatar image

CGough
47 7 7 13

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

1 answer: sort voted first

probably the easiest thing to implement would be to use a gate which opens on button pressed, closes on button released, and has a entry of tick. it may not be the best method out there but its the simplest to implement. i tried to make some implementations with timers or custom loops but they were jittery.

alt text

capture.png (167.5 kB)
more ▼

answered Mar 30 '19 at 08:33 PM

avatar image

ThompsonN13
10.1k 33 10 25

(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