# Not Respawning Enemy when Killing Them After Exiting then Reentering the Level

**URL:** <https://forums.unrealengine.com/t/not-respawning-enemy-when-killing-them-after-exiting-then-reentering-the-level/463931>\
**Category:** Community & Industry Discussion\
**Tags:** suggestion, game-instance, unreal-engine, enemy, spawning-actors, question\
**Created:** [April 18, 2020, 11:27am UTC](https://forums.unrealengine.com/t/not-respawning-enemy-when-killing-them-after-exiting-then-reentering-the-level/463931 "2020-04-18T11:27:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenoch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenoch](https://forums.unrealengine.com/u/Kenoch)\
**Post date:** [April 18, 2020, 11:27am UTC](https://forums.unrealengine.com/t/not-respawning-enemy-when-killing-them-after-exiting-then-reentering-the-level/463931/1 "2020-04-18T11:27:52Z")

</div>

Hi everyone.

Kinda newbie here, im trying to make a platformer game where once you kill an enemy on one level, they won’t respawn after the player leaves that level and comes back to it.

The idea i had in achiving that is by making an enemy spawner that checks if its spawned enemy is killed, which in turn updates a variable in a game instancer for that spicific spawner to not respawn the enemy next time the player enters the level.

And the problem is i have no idea how can i do that, or if that’s the correct approach to this problem in the first place.

Would happly accept any help or suggestions, Thanks.

---

<div class="post-metadata">

**Author:** ![irajsb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/irajsb/32/740687_2.png) [@irajsb](https://forums.unrealengine.com/u/irajsb)\
**Post date:** [April 18, 2020, 2:45pm UTC](https://forums.unrealengine.com/t/not-respawning-enemy-when-killing-them-after-exiting-then-reentering-the-level/463931/2 "2020-04-18T14:45:57Z")

</div>

use save game objects and make an array of enemies (or array of bools ).save game whenever you want.  
load save game object before spawn and spawn ones that have their boolean options false.

---

<div class="post-metadata">

**Author:** ![Kenoch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenoch](https://forums.unrealengine.com/u/Kenoch)\
**Post date:** [April 20, 2020, 5:41pm UTC](https://forums.unrealengine.com/t/not-respawning-enemy-when-killing-them-after-exiting-then-reentering-the-level/463931/3 "2020-04-20T17:41:20Z")

</div>

I’ve tried it out and it worked, thanks for letting me know of this approach
