Download

UKismetSystemLibrary::Delay Usage

Hi! I am trying to use the Delay function just like I use in blueprints.

I am using FTimerhandlers with GetWorld()->GetTimerManager().SetTimer all the time but wanted to try this way.

I have this function in the same actor:

void ABookMenuCPP::CallLoader() { gamemode->myLoadTheGame(); }

then what I do is this:

	FLatentActionInfo action;
	accion.ExecutionFunction = "CallLoader";
	accion.CallbackTarget = this;
	UKismetSystemLibrary::Delay(this, 1.0f,action);

Is not working. I bet I am not defining the ExecutionFunction parameter as I should but I dont know.
Any Help :slight_smile: