Grave and Spectate system

Hello all. Sorry for bothering you. I need help on something and thought maybe you could help.
I am new at Unreal Engine. My partner and I are trying to make a co-op horror game. I want to consult something.

In the game,there’ll be 4 graves and players will start from there. What I want to do is,I’ve made a health system,when health goes 0,the player will start spectating other players as he’s died.

1)How can I make a spectate system?

Also,when one of the other players go to the dead player’s grave,when they drop a specific item (like stone),I want the dead character to respawn.

2)How can I set this?

Also,can we get the players Steam names and write them on the graves by order?

Could you help me out solving these?

You probably want two different kinds of Pawn/Character classes - one for regular gameplay and one for spectators. When play starts your player controller possesses a regular pawn. When your health drops to zero your player controller possesses a new spectator pawn.

Player Controllers

Pawn

This video touches on the relationship between Player Controllers and Pawn/Character objects.

Begin Play | Gameplay

1 Like