I’m trying to use SetTimerForNextTick to call another function in the same class the following tick:
{ //doing stuff
FTimerHandle UnusedHandle;
GetWorldTimerManager().SetTimerForNextTick(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
class/struct/union
note: type is 'unknown-type'
Does anyone know what’s wrong with my syntax?