Game Development Community

Team colors for shapeNameHud

by Howard Dortch · in Torque Game Engine · 01/28/2005 (6:53 am) · 3 replies

Can anyone point me to a way to change the color of the guiShapeNameHud depending on teams?
I have been digging through the engine code and I dont see a way to distinguish which team a player is on.

If I could assign the team value to the shape it would be simple to just do this:

if(shape->team == 1)
{
changeColor(ColorF(0, 0, 1));
}

I looked thru the forums and resources but can't find anything on the subject.

#1
01/28/2005 (7:39 am)
First you need to an a new variable TEAM to something like GameBase Class, besure it get sent over the network pack /unpack functions . . .make some methods to get and set . . . then you will have team IDS
#2
01/28/2005 (9:17 am)
Thanks Anthony! thats almost the same thing I had, I tried to do it without the pack/unpack.
Question, why a F32 for team why not U32 ?
#3
01/29/2005 (12:47 am)
I would imagine a U32 would be the better choice.