haikel
Junior vMember
i wanna be the very best ... like no one ever was.
Posts: 43
|
Post by haikel on Jun 26, 2017 5:35:42 GMT
i really want to make enemies health bars on the HUD instead floating on their heads i only changed the canvas from world space to screen space - overlay the thing is now the health bar is always appearing , even if I'm not close to the enemy. (the health bar it self works perfect and it destroy whenever the enemy is dead ) so i want a little help , making the enemy health bar appear / disappear whenever I'm close/away from an enemy and if it's possible make the health bar only appear when i lock on a target. (keep in mind I'm very noob x) so i need detailed explanation ) and thanks in advance. EDIT : this is exactly what I'm looking for
|
|
haikel
Junior vMember
i wanna be the very best ... like no one ever was.
Posts: 43
|
Post by haikel on Jun 26, 2017 8:18:19 GMT
EDIT : i used the enemy health prefab from invector.
|
|
|
Post by witcher on Jun 26, 2017 8:27:59 GMT
well just keep healthbar disabled at 1st then only activate it if distance between you and enemy is less than threshold..
|
|
haikel
Junior vMember
i wanna be the very best ... like no one ever was.
Posts: 43
|
Post by haikel on Jun 26, 2017 9:45:11 GMT
well just keep healthbar disabled at 1st then only activate it if distance between you and enemy is less than threshold.. ye i know that , the problem is i don't know how to do that
|
|
|
Post by Invector on Jun 26, 2017 18:17:33 GMT
I guess you woud need to create a new solution for this, like one health bar inside the HUD that replaces the currentHealth value to your current target.
btw* very nice screenshoot, love the hud customization!
|
|
|
Post by dendiee on Aug 5, 2017 20:01:46 GMT
i really want to make enemies health bars on the HUD instead floating on their heads i only changed the canvas from world space to screen space - overlay the thing is now the health bar is always appearing , even if I'm not close to the enemy. (the health bar it self works perfect and it destroy whenever the enemy is dead ) so i want a little help , making the enemy health bar appear / disappear whenever I'm close/away from an enemy and if it's possible make the health bar only appear when i lock on a target. (keep in mind I'm very noob x) so i need detailed explanation ) and thanks in advance. EDIT : this is exactly what I'm looking for do u already have a working script? if not i can help you with this. I have this working in a very easy way
|
|