So I’m trying to pass an actor to a var, so I call the function to pass the var but when i call to see if the var was added it doesn’t.
Hey there @Snowynight! So what I gather here is that your Get All Gladiators function probably does a check for all waiting gladiators, likely by class, then assigns them to that Gladiators array right? Most times when I see an issue like this it’s usually that the array is the problem, but we’re going to need to see more and get a little bit more information on the issue.
Is it the gladiators array that’s not being updated?
another problem could be the timing.
If your Get Gladiators Function tries to get all actors of a class, this may takes longer than the execution line. So… Try to add a return value to your function, that returns the array. And set it right after the Get Function, but before the branch.
Thia mostely makes sure the array is set in correct time.
Another problem could be your get Method.
The Getter of your Pit Refrence is called before the function to get Gladiators, but in same called to get the Array and contains Node.
It happens, that this Getter is just a Copy and so, getting the array after the Get Glafiators Function, remains the same as before calling it.