Game Development Community

Vehicle Health/Energey Bar

by Ken Davis · in Torque Game Engine · 10/24/2004 (3:17 pm) · 2 replies

I have read this and I have everything it mentions. I also have the GuiHealthBarHud() objects in my playerUi.cs file. The bitmaps show up, but they are not filled like they were with the human player.
Any ideas?

#1
10/25/2004 (1:08 pm)
Look in guiJealthBarHud.cc around line 100. if it reads like this:

if (!control || !(control->getType() & PlayerObjectType))

then it needs a vehicle mask so it will render when you are controlling a vehicle... like so:

if (!control || !(control->getType() & (PlayerObjectType | VehicleObjectType)))
#2
10/25/2004 (1:41 pm)
You need to add the new gui for the vehicle too guivehiclehealthbar. . . . it is a new gui to be added use the f10 editor or manually add via the playgui.gui file