Good evening lads,
I’m making a Space-shooter type game for a university project, but I’ve run into some problems with my spawning of the enemies.
I have 3 child classes, named Enemy A, B and C, all children of the Abstract Class, Enemy BP.
I’m basically creating arrays that will resemble my enemy groups as they spawn, so I have set the arrays to be of the Enemy BP type, so I can set my different enemy spawns to be like Group A: ABCA, Group BCBA etc.
https://puu.sh/woAW4/efe31e2f79.png
Problem is, that my spawn isn’t working, I try to dynamically get the class of each enemy in the array, but that doesn’t work…
https://puu.sh/woBaU/74c945b1e3.png
If I set the Spawned Class to be a specific class, Enemy A,B or C, then it works, but only spawns one class type as is logical. (all of them spawn at the same time, mind you, but that’s a whole different issue)
I’ve tried printing the contents of the Enemy Group Arrays, but that’s coming up empty, so i think I’m doing something wrong when it comes to how I’m approaching the inheritance of the Enemy BP class.
https://puu.sh/woBr8/1235b4d7f8.png
So yeah, if you guys have any tips on what I’m doing wrong, please tell me I’m really interested in solving this issue, or cough cough my delay issue.
In any case, thanks alot for reading and if you having any tips whatsoever, even unrelated to this exact issue, please feel free to chime in.