Add mesh to array in blueprint

Hey dudes and dudettes.

I have a weapon blueprint that I created by looking at this thread: https://forums.unrealengine.com/showthread.php?1047-Lets-Make-Weapon-in-Blueprint-from-Blank-Project

Picture of the blueprint with said array:

For some reason I’m not able to add any mesh to the array in the default value. The “Set Hidden in Game” function says “Target is SceneComponent” so the array variable type is a scene component but I’m not able to add anything to it… Not from the scene or the content browser. I’ve been tinkering with this for days and have not been able to figure it out.
I also have the skeletal mesh in the components section of my character to set from hidden to not hidden.

Anyone got any ideas?

Thanks

Anyone?? Once I get this figured I can have allll the weapons in the worlddd

Hi …Try this setup.

Create a new array variable with type StaticMesh (This will let you choose meshes from Content Browser):


Then set the graph like this:

1 Like

Awesome! I have it set up like you said and it compiles fine but I get an error when I play in the editor.
“Accessed None “W Model” from node ReturnNode in blueprint MyCharacter”

Any thoughts?

thanks

Edit: Is W Model the actual mesh from the components tabs?

1 Like