I know the most easy way to do a delay(like we do in BP) in c++ is to set a timer, but a timer doesnt work exactly like the delay fuction, and this is why i´m trying to use delay in c++.
First, is it possible to use delay from the KismetSystemLibrary in a c++ class (AActor, ACharacter…)?
Second, if yes, how do i make the setup in this case? :
Looking into FLatentActionInfo, the linkage parameter might be troublesome in C++, but I haven’t tried it YMMV. Otherwise you set the struct parameters, CallbackTarget = the UObject which contains the function, e.g. reference to this within your member function calls, then for ExecutionFunction write out your function name in FName format. You can probably leave Linkage and UUID in their default values.
CallbackTarget-> needs to be the base classe that declares the function?
ExecutionFunction-> Fname format, never heard of it, can you give me one exemple?
I´ve found something interesting FTicker, it supose to create a delay/interval with the addticker fuction, but i dont know how that really works, so i skipped it.
Thanks man, i know how to do use timer, the real problem right here is to know why we cant use the delay function, that really wierd since BP can use, and we can call from KismetSystemLibrary.