How can I Call a Function via C++?
I’ve found the function “UObject::FindFunction” which allows me to find and get a UFunction instance by a name and UObject instance, I checked and it returns a valid pointer. Now I need to call this function, but how?
I thought of “UObject::CallFunction” but idk what I should use for Z_PARAM_RESULT and Stack… I tried and made a FFrame, and used the nullptr for Z_PARAM_RESULT, cause my function has at the moment no returns or params. But if I call it, it just crashes with “access violation reading location”
I can’t use CallFunctionRemote or CallFunctionByNameWithArguments, except there is an easy way to get the function pointer of CallFunctionRemote xD