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"

Pausing/Playing Event Ticks on Key Press

Hey Guys, Im trying to implement a system where upon pressing a key it plays the event(currently its set to having the static mesh rotate in place) and when the key is pressed again it pauses.

My current problem is that I dont know how to insert the functionality to pause the rotation by pressing the key or heck even starting it upon pressing the key.

Along with that I'm curious as to if theres a way to wind up or slow down the spinning of said object upon press/release

Any help would be majorly appreciated!

alt text

Product Version: UE 4.16
capture.png (47.2 kB)
more ▼

asked Jul 31 '17 at 06:00 PM in Blueprint Scripting

avatar image

6 1 2

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

2 answers: sort voted first

the blueprint should be like this:

alt text

tick-y.png (104.9 kB)
more ▼

answered May 28 '18 at 09:47 AM

avatar image

36 3 4

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

N Flip-Flop means that you do a and b in order. First time it is executed, it does a, second time b, third time a, fourth time b and so on.

You can use the built in function "Set Actor Tick Enabled" to decide if "Event tick" should fire or not.

alt text

capture.png (110.1 kB)
more ▼

answered May 28 '18 at 03:23 PM

avatar image

399 5 4 13

(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