Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ATimerActor::BeginPlay()
- {
- Super::BeginPlay();
- //Timer handler
- FTimerHandle TimerHandle;
- //Activate the Timer
- //1st Parameter: TimerHandle
- //2nd Parameter: The Object related to this timer
- //3rd Parameter: The function that is going to be fired
- //4th Parameter: The loop time
- //5th Parameter: True - if you want this timer to loop, false otherwise
- GetWorld()->GetTimerManager().SetTimer(TimerHandle, this, &ATimerActor::DoAPeriodicCheck, LoopTime, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement