Product Chat / Health Hud Color

Author
Message
jvwjgames
9
Years of Service
User Offline
Joined: 2nd Mar 2015
Location:
Posted: 7th Jan 2017 05:42
I am wanting to change my Health Text based on Health remaining is this possible. for example. 100 of life = green, 75 of life = yellow, 50 of life = orange, 25 of life = Red
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 7th Jan 2017 07:28 Edited at: 7th Jan 2017 07:35
you would have to turn off the HUD system thru scripting and then use the sprite system instead.
This can be done, But you will need to make the sprites, and the scripts to control it.

Take a search thru the script thread and check out some of the sprite scripts.

The radar.lua and the objective scripts in the scriptbank folder or maybe in the scriptbank\radar folder is a great example on how to set up the sprites.

https://forum.game-guru.com/thread/215583 Is a good thread for the basics.

https://forum.game-guru.com/thread/216343 has the code and images for a halloween HUD style for Health. Does what your looking for. Made and Given to the community by user GD.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

jvwjgames
9
Years of Service
User Offline
Joined: 2nd Mar 2015
Location:
Posted: 7th Jan 2017 16:06
Thanks for your Quick Response and Yes this is what i was looking for.
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 7th Jan 2017 16:08
You are welcome.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Login to post a reply

Server time is: 2024-07-03 04:33:40
Your offset time is: 2024-07-03 04:33:40