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"

SetTimerForNextTick proper syntax??

I'm trying to use SetTimerForNextTick to call another function in the same class the following tick:

 { //doing stuff
  FTimerHandle UnusedHandle;
  this, &UMyCharacterMovement::
  DoneDodging); //bWantsToDodge = false;
  } }
  void UMyCharacterMovement::
  DoneDodging() { bWantsToDodge = false;

However, I'm not using the SetTimerForNextTick correctly and get the following errors:

  error C3861: 'GetWorldTimerManager':
  identifier not found

  error C2228: left of
  '.SetTimerForNextTick' must have

  note: type is 'unknown-type'

Does anyone know what's wrong with my syntax?

Product Version: UE 4.17
more ▼

asked Oct 10 '17 at 07:22 AM in C++ Programming

avatar image

Nerdballer Games
35 5 15 16

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

1 answer: sort voted first

I know this is old, but I managed to get it working so adding a note in case it trips anyone else up.

 FTimerDelegate TimerDelegate;
 TimerDelegate.BindUFunction(this, FName("MyFunctionToCall"));
more ▼

answered Feb 21 '18 at 10:59 PM

avatar image

61 5 3

avatar image Nerdballer Games Feb 28 '18 at 09:02 AM

Thanks! It still helps even though it's old. So basically, you need to always bind delegates. Seems obvious now :)

(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