Garry's Mod

Garry's Mod

PAC3
Omnistat 2017 年 4 月 24 日 下午 10:06
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.
< >
正在显示第 1 - 8 条,共 8 条留言
look on paste bin for a pac called ai
Omnistat 2017 年 4 月 24 日 下午 11:30 
look on paste bin for a pac called ai
Do you have a link to it?
sadly no
Videogames 2017 年 4 月 29 日 下午 4:24 
[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.
fErͦ͒ͦ͒̀ͫ̚̚k₀ 2017 年 5 月 3 日 上午 2:05 
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 2017 年 5 月 14 日 上午 7:15 
(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
引用自 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
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50