How to have the HUD of the npc as that of the player

Steven1985

Active member
Hi, when I spawn a npc, I'd like he has the HUD as that of the player. If I spawn the first ally, his bars should stay in the part of the second player , the second ally as third player ect. I'd like also that when the ally hits an enemy, his health bar is shown like if he was hit by player.
 
You know, I think this would be done best if you code custom HUD for all players. Each HUD correspond to entity registered in specific global variable.
Ex: HUD 1 for entity in global variable "P1", HUD 2 for "P2" and HUD 3 for "P3".

With this, when an NPC replaces a player, he/she only need to register himself/herself in respective variable to have his/her stats shown in HUD.
 
Back
Top Bottom