How can I attach a blueprint weapon to socket?
I have C++ class of my character and also I have a blueprint generated class of weapon. How can I attach the weapon? I still can't figure out, how can I create components of blueprint generated classes.
asked Aug 09 '14 at 11:10 PM in C++ Programming
I recommad you to create (atleast dummy) base class for weapon with functions and varables that your weapon needs, it will be easier for you to operate blueprint made weapons based of that class in C++ this way.
In that weapon base class, you could have varable:
And in defaults of weapon based class you will see mesh selector, you set mesh of a weapon, whih later you can read and apply to component in character
Here is how I attach my weapon to the FPS Mesh in my project. I created a socket on the bone of the mesh and then spawn the Weapon Actor and then attach it. Like this. (See Link here for better view.)
Hope it helps. WCode
Follow this question
Once you sign in you will be able to subscribe for any updates here