I have 26 actors of that class . Though I’m thinking to dispense with that mess and just make 26 individual classes so that it will be easy to cast to them, but that seems to much like giving up, and I really want to learn to do things the proper way. I have been able to store them all in an array, but I can’t access any specific ones, because I’m not able to determine which specific instance goes with which specific index in the array. I’m still working on how to do that.
For the moment, I’ve put all their variables that I need to access from the PlayerController in the PlayerController. It’s east to cast to the PlayerController, but difficult to go the other way. I have managed it so some degree, but I’m still not there yet.
I’m going to keep working on the casting thing. I’ll try the ‘promote to variable’ thing and see how that goes. Not sure if that’s the solution for me as I’m not spawning the instances, they’re in the level at the start, but maybe I can make them into a variable in each one’s beginplay or something. I’ll check it out when I get time at work tonight.
I liked UnrealEnterprise’s suggestion of taking other projects apart. I have done this some, but I could definitely go further into that.
As always, your input is much appreciated.