When I spawn an actor ,
I’ve been trying to figure out how to get my custom variables so I can change them based on variables from the character it’s spawned from.
for instance i have a few bools I want to edit after spawning the “greencharge” actor.
If you haven’t included the header file for that class, I would do so. In any case IntelliSense has probably failed to update it’s database and does not recognise the class properly (If you are using Visual Studio).
Ensure that the variables you are trying to access are public and not private.
Yeah I had added my GreenCharge.h include thinking that was it but still didn’t help anything(I already had it in my header file). I could only get the variables spawning in it’s own class .
the variables aren’t under public or private, I’ll add public and see if that fixes it, thanks for the help!