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. 

Multi timer for different tasks ?

Please help me. Is it possible to implement multi timer For different tasks ? Time should be different for different tasks :(

alt text

alt text

Product Version: UE 4.19
Tags:
bp-1.jpg (41.6 kB)
bp-2.jpg (427.4 kB)
bp-3.jpg (307.4 kB)
bp-4.jpg (424.3 kB)
more ▼

asked Jun 15 '18 at 09:00 PM in Blueprint Scripting

avatar image

ElizzaRF
13 3 6

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

1 answer: sort voted first

Look into Timers:

https://www.youtube.com/watch?v=QcN04l3Vlxk&ab_channel=Jayanam

Consider using actor components for this, each Task is an actor component with its own widget and Timer.

more ▼

answered Jun 15 '18 at 10:47 PM

avatar image

Everynone
14.7k 76 25 61

avatar image ElizzaRF Jun 16 '18 at 05:22 AM

Ths! But, I did everything as a lesson, but only one Timer works. I think how to put a timer in an array of values, so that each task has its own timer, which works in parallel.

I have formed a task number. + A timer is created. But he one, and I as can't add the second timer by means of the array

alt text

alt text

alt text

avatar image ElizzaRF Jun 16 '18 at 05:44 AM

Example of a multi-timer, the timer works simultaneously https://www.youtube.com/watch?v=yei3oBOFiBs&t=62s

avatar image Everynone Jun 16 '18 at 08:08 AM

You can store Timer Handles in an array. But that would be unnecessary if you used components for this as I suggested.

Each component is instanced and has a life of its own, you can retrieve its Timer Handle at any time and add it to an array if you wish to.

edit: your images do not work

avatar image ElizzaRF Jun 16 '18 at 08:42 AM

I'm not good at arrays, for me it is very difficult :(

avatar image ElizzaRF Jun 16 '18 at 09:00 AM

Consider using subject components for this, each task is a subject component with its own widget and timer.

I think this is a good decision, but how to do it? :(

avatar image ElizzaRF Jun 16 '18 at 09:27 AM

YAY, YAY, YAY!!! It's okay!

Your decision helped ! !!

alt text

bp-5.jpg (84.9 kB)
avatar image ElizzaRF Jun 16 '18 at 09:30 AM

Thank you very much!

(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