I'm looking for a method or property of BasePlayer that will show their current health.
For example, when OnPlayerAttack is called I want to get the health of the Attacker and if they are attacking another player I want to get their health too.
I'm having a hard time finding this property in BasePlayer.
Solved Getting the health of a player?
Discussion in 'Rust Development' started by AppetiteForDistruction, Feb 23, 2018.
-
Code:
float hp = player.health;
-
Where exactly are you seeing that?
-
in BasePlayer
-
Attached Files:
-