Question by
Noouhh · Mar 01, 2016 at 03:39 PM ·
guimultiplayerhealth
[Help!] Showing only your health in a Multiplayer FPS game
So I have an extremely basic Multiplayer FPS game working using Unity's native networking features. I have a health bar show up at the top of the screen using this:
void OnGUI(){ GUI.Box (new Rect (10, 10, 100, 30), "HP | " + currentHealth); }
The problem with this is when I have one player shoot another, I shows both health bars at once, on over another. How can I have the player only see their health and not the other player's health?
Comment
Your answer
Follow this Question
Related Questions
Healthbar in a Multiplayer game 0 Answers
Showing player health on UI 1 Answer
Why is my GUI popup showing up for both host and client? 0 Answers