|
You will want a bool to control if player is invincible or not and then do a timer when they revive/login where it's turned on. have attack/jump/any action clear the timer and set the bool to false. Then in attack code say that if the attacked client is invincible, break the attack code.
It's simple enough to do but it will require significant work just to find all the applicable places to A) Check if player IS invincible and B) remove/add invincibility based on certain conditions.
|