Download

Is an actor aware if it is in an Array?

Hello everyone,

I’m pretty sure I already know the answer - No, but I thought I would ask to see if there was an easier and more efficient way. My question is that would an actor be aware if it is in an array or would I need to reference that array within the actor itself? As I said I’m pretty sure the answer is no and I need to make reference to the array that the actor is in within the actor but on the off chance there was a way to do this natively I would ask all you kind people.

Many Thanks

No, adding an actor to an array does not give it knowledge of that array.

Thanks, I thought that would be the case.

contains.png
Two ways I can think of.

Thank you, that’s been a great help, I now have some ideas that I’m going to try out then I get home.

Cheers