# Spawn items where AI is dead

**URL:** <https://forums.unrealengine.com/t/spawn-items-where-ai-is-dead/2501103>\
**Category:** C++\
**Tags:** unreal-engine, question, CPP\
**Created:** [May 10, 2025, 4:59pm UTC](https://forums.unrealengine.com/t/spawn-items-where-ai-is-dead/2501103 "2025-05-10T16:59:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sehwa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sehwa](https://forums.unrealengine.com/u/sehwa)\
**Post date:** [May 10, 2025, 4:59pm UTC](https://forums.unrealengine.com/t/spawn-items-where-ai-is-dead/2501103/1 "2025-05-10T16:59:48Z")

</div>

Hello, I’m about to spawn an item in a location where AI died. An animation of AI dying as it dies is played.  
I want to spawn items in that location when the AI dies animation is running. I want to move a little bit and spawn where I want to (specific parts of the AI’s body when the AI dies animation is running).  
I’m not good at speaking, so I don’t know if you guys understand..

Existing NPC locations are as follows.  
(X=764.638814,Y=2101.704539,Z=107.399999)  
I adjusted the location of the item I wanted in the world as below.  
(X=894.638814,Y=2021.704539,Z=47.399999)

I found the difference between these two values and spawn the item. But it turned out to be a spawn, unlike what I thought.  
NPC is not becoming a spawn in the dead place, it’s become a spawn in the wrong place!

Do you guys have any tips for spawn? I don’t know how to make it where I want it to be… Help!
