Do you mean have a function return multiple variables? That’s not possible, but you can use “out” variables, like this:
void MultipleReturn(FVector& OutVector, INT32& OutInt)
{//When you set OutVector and OutInt, the variables that were passed into the function will also be set.
OutInt = 37;
OutVector = FVector(25, 25, 50);
}
// How you would use this:
void SampleFunction()
{FVector Vect;
INT32 Int;
MultipleReturn(Vect, Int);
// Now Vect = 25,25,50, and Int = 37.
}
Hope this helps