So, I’m making a TDS space game where projectiles are fired from turrets that rotate which are attached to the parent actor. Got this working perfectly for the player actor. However I’m at a loss on how to implement this system for my AI. I essentially need to cast some targeting variables from the AI_toon actor to the turret_2 actor which is attached to it. Using the same method I used in my player just doesn’t seem to work.
I believe its my casting, how do I do a generic cast to an attached actor. I’ve been looking at casting to class but im not sure that works. I know that i need to cast to the specific instance of the attached turret actor from the specific instance of the AI toon, but I haven’t been able to find samples of anything doing this. Any help would be appreciated. If screens are needed let me know.