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"

Countown In the background

Hello Guys!

How can I create a countdown in the background on an adroid app. For example, when there is an item and it has an one hour cooldown, the user should get a push-message that says that the item is ready for use (or something like that).


Product Version: UE 4.10
more ▼

asked Jan 15 '16 at 09:03 PM in Blueprint Scripting

avatar image

69 14 12 18

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

1 answer: sort voted first

Hi Creey.

There is two basic ways:

After the player use the item, you can place a Delay node with a value of 3600.

Or you can create a Custom Event, name it "ItemCooldown" and when the player use the item, you call the node "SetTimerByFunctionName", on the func name place "ItemCooldown", on time 3600.

Off course the function won't know which item got their cooldown expired, so you may add a parameter on your custom event to tell the timer which item is.

more ▼

answered Jan 15 '16 at 11:47 PM

avatar image

475 25 8 30

avatar image Creey Jan 17 '16 at 06:59 PM

Will this function also work if the app is closed?

avatar image Creey Jan 18 '16 at 12:42 AM

Because the User should get a message if his item is ready or not. Do you know what I mean?

avatar image krisfhugz00 May 15 '16 at 05:37 AM

Sir have you managed to do Notification using app in background process, Do you have any available nodes or blueprints to show?

(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