Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h |
Include |
#include "Kismet/KismetSystemLibrary.h" |
Source |
/Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp |
static FTimerHandle K2_SetTimerDelegate
(
FTimerDynamicDelegate Delegate,
float Time,
bool bLooping,
float InitialStartDelay,
float InitialStartDelayVariance
)
Set a timer to execute delegate. Setting an existing timer will reset that timer with updated parameters.
The timer handle to pass to other timer functions to manipulate this timer.
Parameter |
Description |
---|---|
Event |
|
Time |
How long to wait before executing the delegate, in seconds. Setting a timer to <= 0 seconds will clear it if it is set. |
bLooping |
True to keep executing the delegate every Time seconds, false to execute delegate only once. |
InitialStartDelay |
Initial delay passed to the timer manager, in seconds. |
InitialStartDelayVariance |
Use this to add some variance to when the timer starts in lieu of doing a random range on the InitialStartDelay input, in seconds. |