GetWorldTimerManager() isn't working

I am trying to create a delay so that when my pawn does something, it then cannot do anything else for a couple of seconds. I have looked at tutorials and help things and they all say use GetWorldTimerManager().SetTimer(). However, when I try to use this, a red line appears under GetWorldTimerManager saying incomplete type is not allowed. Does anyone know why this is? Do I need to include something in the code that I might be missing?

Try

#include "TimerManager.h"

Perhaps together with

#include "Engine/World.h"

This worked, thank you!

If its not help try #include “Engine/World.h” And write like this GetWorld()->GetTimerManager()

2 Likes

If its not help try #include “Engine/World.h” And write like this GetWorld()->GetTimerManager()

1 Like