Game Development Community

Nametags on non-AI

by Chris Oconnell · in Torque Game Engine · 05/08/2006 (12:11 pm) · 4 replies

Can anyone tell me how one could get the name that appears over players and AI characters to appear over other in-game shapes, like say a box or a building?

Thanks ahead.

#1
05/08/2006 (12:19 pm)
Take a look at : GuiShapeNameHud.cc
I think that is the name.

something close to that anyhow.
#2
05/08/2006 (10:48 pm)
Interesting... but is there just some way to script it if it's called by a datablock?
#3
05/09/2006 (1:54 am)
Yea i'd like to know that to.. there must be a script function for that right!? i was also wondering about that little health bar.
#4
05/09/2006 (5:29 am)
There's no built in script function to do that.

Why don't you take a look in GuiShapeNameHud as Badguy recommended? Changing an if statement in there will make the healthbar/name react to any type rather than just the PlayerType.