I can't find how to create variables provided by ue4

Error E0020 The “Actor” ID is not defined. I need to pass an array of actors to a c++ function, but I can’t find how to declare a variable of the actor type, I decided to try to pass only the position of the actors, but I also failed to create a variable of the location type. what does the creation of variables from ue4 look like?

Hi!

Can you, please, provide a snippet of code where you trying to declare you variable?

I have tried varied syntax so I will attach several versions of the lines with the function call and the errors that occur during compilation are written on the right

Try this one:
void Algoritm(int num1, int num2, TArray<int> IntArray, TArray<int>& OutInt, AActor* num3);

1 Like