Spawn Actors Attached to Multiple Sockets
In the weapon equip system from the marketplace, it only lets you attach weapons to the hand socket or a single socket when they are deselected, however I want to attach each of the different weapons I have to different sockets when they are in neutral unequipped state.
Through altering the blueprint I can get the weapons to spawn at the all the sockets I want (neutral on 2 sockets of back&belt and equip in hand). The problem is weapons attached to neutral sockets (which I made spawned at the beginning of play) do not disappear when I try to equip them in hand. So the gun is equipped to hand and hand swapping works with all weapons, but a duplicate stays on the original sockets.
Not sure if I'm allowed to show the blueprints since most of the setup is from the marketplace. But maybe there is a suggested way of solving this socket problem for multiple spawn actors?
asked Nov 04 '14 at 08:59 AM in Blueprint Scripting
Ok so I found a solution. In the original blueprint the weapons were attached before they were cast to the weapon parent blueprint and put into an array. So I just attached them to the sockets after they were put into the array. Not sure if it's the best solution, but guess it works for now. Here's a screenshot of the end part I added. Learned a lot about blueprints from this challenge haha.
answered Nov 04 '14 at 06:31 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here