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"

How to use new "Timer by Handle" nodes?

I have a lot of warnings because i need to change old Set/Clear/Pause Timer nodes to new ones. Previously I've had e.g. Clear Timer with Function Name typed in. I have no idea how to use the new nodes and I can't find any documentation regarding these.

Edit: I see that there is a "Handle" output in new Set Timer by Function Name node. So i guess that we need to save this as a variable and then pass it to e.g. Clear Timer by Handle? That will need an extra variable for every Timer in a class...

Product Version: UE 4.9
Tags:
more ▼

asked Aug 31 '15 at 07:09 PM in Blueprint Scripting

avatar image

Slavq
2k 157 153 209

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

1 answer: sort voted first

Previuesly timers use combination of object pointer and function pointer to identify timers, but this method has a weakness, you can only assign one timer to single object and single function in it. With handlers as identificator it's not a problem anymore + you change target function in timer without creating new timer. So yes if you want to operate timer in future you need to create FTimerHandle, you can reduce number of handles by reusing single handle for multiple timers if you know that those timers is not used in same time.

Also if you want create "set and forget" kind of timer, you dont need to keep handle, timer will work without it, just declare local FTimerHandle varable before SetTimer and set the timer like this

 FTimerHandle Handle;
 SetTimer(Handle, this, &UExample::Example);

But keep in mind if you use Handle you will not able to control timer anymore.

more ▼

answered Aug 31 '15 at 08:05 PM

avatar image

Shadowriver
37.1k 935 172 1116

avatar image Slavq Aug 31 '15 at 08:30 PM

Thanks for explanation bro!

(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