Im trying to make a call of duty style game mode, where you can change weapon by pressing a button that changes your hero, like press the melee button to switch to genji for your knife. but im having trouble because you go back to full health when you change character. does anyone know how to store what your health is and keep that health for a different character. (all the characters have the same health)
- set player variable(event player, oldHealth, health(event player))
- start forcing player to be hero(event player, *hero*)
- wait(0.1)
- damage(event player, null, subtract(max health(event player), player variable(event player, oldHealth)))
1 Like
thanks a lot. iām new to the workshop, and well coding in general. so i appreciate the help.
1 Like