Am trying to create a timer for an actor and something doesn’t seem to be working out right. I don’t know how to make it work.
I have this code which compiles and works.
GetWorldTimerManager().SetTimer(CountdownTimerHandle, this, &Anewactor::AdvanceTimer, 1.0f, true);
(Anewactor class inherits from AActor and does nothing except the test timer).
I have another class that inherits from AActor and this code
FTimerHandle DummyHandle;
GetWorldTimerManager().SetTimer(DummyHandle, this, &APrinceMainMenu::TestTimerTrigger, SoundDuration, false);
GetWorldTimerManager().SetTimer(DummyHandle, this, &APrinceMainMenu::LoadFrontEndMap, SoundDuration, false);
This code fails to compile with the error.
You cannot use UObject method delegates with raw pointers.
What am I missing out ?