Game Development Community

Energy Bar and Vehicles....

by Nick "Dig" Koirala · in Torque Game Engine · 07/06/2003 (10:05 pm) · 4 replies

Do the health bar and energy bars not show up if you use vehicles without the player class?

how do I fix this if thats the case...

#1
07/07/2003 (9:26 am)
You can use %client.player.xxx - to access the health and energy bars/values, if you've simply mounted a player in the vehicle.

There's an 'if statement' (at work, so can't give you the exact location), that checks if you're currently the player object.
If you're not, it doesn't display the health bar.

I believe it's in either the Health/Hud.cs or in the actual Hud.cc file.

I'll get the exact location this eve, if you'd like.
#2
07/07/2003 (3:12 pm)
That's game/fps/guiHealthBarHud.cc
#3
07/07/2003 (4:25 pm)
Gosh I was a nice guy, actually posted something helpfull here