THANK YOU!!! You are GOD!!
I want my func to do other staff but return on which actor that staff was done…
Ufff… Im a total rookie here, u have no idea how much u saved my brain from annihilation! TNXXXXX
This would work if you used int for example, but unreal have protected it’s classes from misuse (i guess).
What you do in this function is the following:
Inputs an AActor* variable (a pointer) as argument
Dereferences that pointer variable and returns it as a Non-pointer. Meaning, you return the actual AActor not the pointer