# Cannot access 'SkeletalMeshComponent\_29'. It is pending kill

**URL:** <https://forums.unrealengine.com/t/cannot-access-skeletalmeshcomponent-29-it-is-pending-kill/336245>\
**Category:** Character & Animation\
**Tags:** error, unreal-engine, skeletalmesh, question, Blueprint\
**Created:** [October 23, 2015, 2:39pm UTC](https://forums.unrealengine.com/t/cannot-access-skeletalmeshcomponent-29-it-is-pending-kill/336245 "2015-10-23T14:39:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.romein](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matt.romein](https://forums.unrealengine.com/u/matt.romein)\
**Post date:** [October 23, 2015, 2:39pm UTC](https://forums.unrealengine.com/t/cannot-access-skeletalmeshcomponent-29-it-is-pending-kill/336245/1 "2015-10-23T14:39:43Z")

</div>

I’ve created a blueprint for generating a skeletal mesh component reference, adding it to an array and setting it in the game world. The meshes drop from an area, roll around and then continue falling. I set up a for each loop with the array storing the skeletal mesh component references that checks the Z world location and it if it’s below a certain value it sets a branch to true and destroys the component stored in the array.

What’s weird is everything in the game world works as I just described it, skeletal meshes generate and when they reach a certain Z location they disappear. However when I hit stop, the message log reports the following: 'Cannot access ‘SkeletalMeshComponent\_29. It is pending kill’. Note the number is always different and it usually generates mult numbers for the error. When I set up a watch flag on the Skeletal Mesh Array I notice that nothing is removed from the array, even if the corresponding mesh disappears from the game world. Attached is my blueprint and message log. Thanks for any help.

 ![63821-generate+skeletal+mesh+array.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/b/bfbf99cacf20585891be7adcbdc628a4b333d5ae.png)

 ![63820-cannot+access+error.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/d/8bd1483e062254cf86ac0c7763dad400d3ae8fac.png)
