Garry's Mod

Garry's Mod

PAC3
Omnistat Apr 24, 2017 @ 10:06pm
Health Bar?
I want to add some kind of health bar above my character's head. Any idea how to do this? I've seen other players do something like this so I know it's possible.
< >
Showing 1-8 of 8 comments
look on paste bin for a pac called ai
Omnistat Apr 24, 2017 @ 11:30pm 
Originally posted by NecroDamer-Howdy There SugerCube:
look on paste bin for a pac called ai
Do you have a link to it?
Videogames Apr 29, 2017 @ 4:24pm 
[Idea alert:]
If you have some basic knowledge of pac, you might want to try this out.

Create a rectangle to represent the healthbar, maybe put it in some kind of frame ect.

Then create a clip object on the rectangle, make sure it is parented so it moves with it.

Put a PROXY inside of the clip, and use it to change the position of the clip relative to the player's health.

It will take some adjustment to get the clip to line up with one end when at full health and the other and when at 0 health, but it should be doable.
you can use heals event (100-70-40-20-0 like a stages in the games) on the lines like a heals
. I think its working and i helped you.
Videogames May 14, 2017 @ 7:15am 
(Heal events would be tetious to set up one for every single % of hp, a proxy is an elegant, although slightly more advanced way of setting a range like that using a mathmatical event)
im wondering how to make it on your screen for everyone to see it, like your a boss, kinda like mincraft boss bars, and darksouls boss bars, where its always visible on your screen
Originally posted by Videogames:
[Idea alert:]
If you have some basic knowledge of pac, you might want to try this out.

Create a rectangle to represent the healthbar, maybe put it in some kind of frame ect.

Then create a clip object on the rectangle, make sure it is parented so it moves with it.

Put a PROXY inside of the clip, and use it to change the position of the clip relative to the player's health.

It will take some adjustment to get the clip to line up with one end when at full health and the other and when at 0 health, but it should be doable.
it actually spasms out when taking damage
< >
Showing 1-8 of 8 comments
Per page: 1530 50