# How to detect manual player respawn?

**URL:** <https://forums.unrealengine.com/t/how-to-detect-manual-player-respawn/1224060>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [July 9, 2023, 2:35pm UTC](https://forums.unrealengine.com/t/how-to-detect-manual-player-respawn/1224060 "2023-07-09T14:35:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [July 9, 2023, 2:35pm UTC](https://forums.unrealengine.com/t/how-to-detect-manual-player-respawn/1224060/1 "2023-07-09T14:35:17Z")

</div>

Specifically, I’m interested in an event that triggers right away when player ‘respawn’ via menu as I need to destroy the vehicle assigned to that player in case it was jammed somewhere on track. If I try to do that on actual spawn event then player spawns into exploding car…

---

<div class="post-metadata">

**Author:** ![AxelCapek](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/axelcapek/32/950074_2.png) [@AxelCapek](https://forums.unrealengine.com/u/AxelCapek)\
**Post date:** [July 11, 2023, 6:05pm UTC](https://forums.unrealengine.com/t/how-to-detect-manual-player-respawn/1224060/2 "2023-07-11T18:05:40Z")

</div>

Without testing, just theory…

You could save logic that detects if a player recieves damage. Reset that logic on spawn.

Filter your code through that logic.

---

<div class="post-metadata">

**Author:** ![1-UPProtocol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/1-upprotocol/32/679214_2.png) [@1-UPProtocol](https://forums.unrealengine.com/u/1-UPProtocol)\
**Post date:** [July 11, 2023, 7:14pm UTC](https://forums.unrealengine.com/t/how-to-detect-manual-player-respawn/1224060/3 "2023-07-11T19:14:38Z")

</div>

I’m not sure if there is a better way ( since there isn’t a `(fort_character).RespawnedEvent()` as far as I’m aware), but I just check if the Player is currently active using IsActive[]

```auto
# THis loop will begin when the character is eliminated (you can listen to this event via fort_character.EliminatedEvent
loop:
    Sleep(0.0)
    if (FortChar.IsActive[]):
         Print("Player has respawned!")
         # You can do whatever you want after player respawns here
         break

    else:
         Print("Fort character is dead / respawning")
# Or you can do it after the loop 

```

---

<div class="post-metadata">

**Author:** ![Nman\_Pkr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nman_pkr/32/1194697_2.png) [@Nman\_Pkr](https://forums.unrealengine.com/u/Nman_Pkr)\
**Post date:** [July 11, 2023, 8:47pm UTC](https://forums.unrealengine.com/t/how-to-detect-manual-player-respawn/1224060/4 "2023-07-11T20:47:19Z")

</div>

You could use a logic variable and conditional statement inside a function that is subscribed to the player spawned event of the spawn pads, When your game loop wants a player to spawn you check that the variable is true (Likely use an [agent]logic map{}, on a per case basis) then set it to false. If it is already false, then they would have spawned manually. In order for this to work the game would need to know when a player is going to be spawned / respawned and set the variable to true.

If you’re having issues placing a respawned player into a vehicle via assign driver of a vehicle device, Then maybe you could respawn the vehicle on player elimination and have the device setup to destroy the existing vehicle. This way you’re destroying it after the fact, not before they are placed in it.

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [July 12, 2023, 6:52pm UTC](https://forums.unrealengine.com/t/how-to-detect-manual-player-respawn/1224060/5 "2023-07-12T18:52:28Z")

</div>

Thanks for ideas, I’ve ended up checking GetFortCharacter.isActive on interval

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 11, 2023, 6:52pm UTC](https://forums.unrealengine.com/t/how-to-detect-manual-player-respawn/1224060/6 "2023-08-11T18:52:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
