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"

In state machines(Animation Blueprint), how to get the time spent in a state?

I want the transition to happen from state A to state B if 5 seconds have elapsed in state A. I am not sure how to get the time spent in state a and use it for transition.

Product Version: UE 4.19
Tags:
more ▼

asked Jul 10 '18 at 09:59 PM in Using UE4

avatar image

Usama.Mehmood
6

avatar image RudyZ_reflector Sep 27 '18 at 07:26 PM

Same question here

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

1 answer: sort voted first

Hello. try using time remain ratio.

more ▼

answered Sep 27 '18 at 07:32 PM

avatar image

Shadow Boss12
181 1 3 5

avatar image RudyZ_reflector Sep 27 '18 at 07:34 PM

Not working in this case. I want to play a simple pose (so I set the play rate to 0), And want to leave the node after x seconds. But thanks for your answer!!

avatar image RudyZ_reflector Sep 27 '18 at 07:35 PM

Actually I will just do it old school: - I put an event when entering the state, - Create a Timer with expected duration - Exit transition when the timer expires

It works but it is quite heavy for such a simple thing

avatar image Shadow Boss12 Sep 27 '18 at 07:42 PM

Thanks for the timer idea. i will look in to it. Maybe there is a simpler way to do it

(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