Using select node to chose a class in blueprint
So I am still pretty new to Blueprints and been working on a small project with them. What I would like to do is spawn a actor depending on a integer value. So if x=1 then spawn actor 1, if x=2 then spawn actor 2. I have everything working to spawn an actor when I have it set on the spawn node
But if I set up a select node nothing will spawn
I'm guessing there is something I'm missing with how the node itself works. If anyone can help me with this, or have another way of doing the same thing that would be awesome.
asked Feb 21 '19 at 12:32 AM in Blueprint Scripting
Of what type is your "Right Arm" variable? If it's type is one of your two classes you're trying to spawn then it's not compatible with the other classes return value. That means you would try to store your "Shield Test" blueprint in a variable of type "Right Arm Base", leading to an error. Using "Actor" as variable type instead should be working fine.
answered Feb 21 '19 at 10:06 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here