# Get All Socket

**URL:** <https://forums.unrealengine.com/t/get-all-socket/436250>\
**Category:** Character & Animation\
**Tags:** socket-reference, unreal-engine, Array, Blueprint, question\
**Created:** [October 24, 2018, 8:08am UTC](https://forums.unrealengine.com/t/get-all-socket/436250 "2018-10-24T08:08:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon89423513](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon89423513](https://forums.unrealengine.com/u/anon89423513)\
**Post date:** [October 24, 2018, 8:08am UTC](https://forums.unrealengine.com/t/get-all-socket/436250/1 "2018-10-24T08:08:28Z")

</div>

Hello everyone !

I’m making a turret with multiple barrels (Approx. 10), and I need to get all the socket that I created with the “Add Socket” function in the Skeleton mode of my turret, to spawn my projectile from all the canons. I need it to be automated, as there will be different version of this turret, with more or less barrels.  
So basically what i need is a “ **Get All Socket by Name** ” and then filter them to feed an array with only socket containing “Barrel\_”.  
The thing is, I know there is a function called **Get All Socket by Name** , but for some reason, it seems I cannot filter it, with either “ **Contains** ” for an array, or [this method](https://answers.unrealengine.com/questions/11008/how-can-i-get-a-socket-on-a-static-mesh-inside-a-b.html?sort=oldest). Also, the **Get All Socket by Name** does not get Socket, but all bones of my Skeletal Mesh.

Thanks for anyone able to help !

---

<div class="post-metadata">

**Author:** ![sjcobs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sjcobs/32/918649_2.png) [@sjcobs](https://forums.unrealengine.com/u/sjcobs)\
**Post date:** [October 24, 2018, 8:11pm UTC](https://forums.unrealengine.com/t/get-all-socket/436250/2 "2018-10-24T20:11:41Z")

</div>

Get All Sockets by Name, then loop them, for each one of the sockets, run them through a branch check if (Socket Name = Barrel) then do something.
