Is there a GetWorldTimerManager().SetTimer() equivalent that supports parameters?
Hello, i want to make a method call after x amount of seconds and for that i have been using GetWorldTimerManager().SetTimer(), but the problem with this is that it does not support sending variables (like AActor and derivated classes) through it. Is there a way to achieve this? Thank you
Funtion poiter just pointer to the funtion that can be called it does not represent a call, you can't use other arguments of such SetTimer as i compiler does not support identifing argument types of pointed function. So you cant do that direcly with one funtion call in C++, it was limitation of timers also in UE3 even in UnrealScript as well as now in Blueprint.
But you can walk way arround it, like seting some varable when you set timer and pointed funtion would use that varable as argument for pointed funtion. You can do that in single funtion that looks like settimer just will have extra argument which will be used to set the that varable which later be used by pointed funtion.
Follow this question
Once you sign in you will be able to subscribe for any updates here