I want to make an ability that changes the hero of the closest player to a variable (named ProjVar4) which is easy enough on its own but what I don’t know what to do is how to change that hero back to their original hero when they die.
Just save the hero they are currently playing into a player variable.
player spawns (is alive == true, because wont trigger on a hero swap but respawn) --> set player variable(event player, currentHero, hero of(event player))
reality stone is used --> start forcing player to be hero(closest player to(event player, team 1), global variable(ProjVar4))
player dies -->
- start forcing player to be hero(event player, player variable(event player, currentHero))
- stop forcing player to be hero(event player)