Hello everyone, I have a problem: I need to replace the class of the spawning object. I created an abstract class from which two types are inherited, which I need to use, the usual Set does not work. However, the spawn actor does not accept references and does not spawn anything.
You can do the spawn with either of the two sub-classes.
But if you want to freely assign the result to a single variable, then the type of the variable needs to be the abstract class ( or type actor, of course ).
Hi, i think you didn’t get it or i don’t understand you. I need to change class variable type of spawning, because spawn actor does not react on variable. I have 2 types of bullets that i want to use depending on the case.
1 Like