How to set player controller respawn time?


I am making a MOBA type game. When a player dies I want them to respawn after a variable amount of time based on their hero’s current level. However I dont know how to do this. I am using c++. At the moment they respawn after 15 seconds because I have set MinRespawnDelay in the GameMode to 15. I know that when the hero respawns, the player controller calls its UnFreeze() function. I also know that their is a TimerHandle_UnFreeze in the playercontroller. Is there some way that I can use this maybe?