Teams implementation with different colors ??
by Michael Schaumburg · in Torque Game Engine · 02/14/2005 (1:12 pm) · 2 replies
I added the team implementation from this link www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2312 .
With some modifications I got it to work. It is a realy great resource for basic teams im-
plementation. But this resource does not show, how to change the shapeNameHud to
different colors for teams. There is another great resource ' Torque TeamId '
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4943, which
explains how to make this. To get this working, it is necassary, to put first the team implementation
from the first resource. But it doesn't work. As it is written in the TeamId resource, the team color
is initialized with :
As I think, the team number is not 'team'. I think we have to use the 'teamId' variable. But also
with this variable, it does not work. I think 'teamId' has no value in GameConnection::createPlayer,
so this does not work. But in which function can I initial %player.setTeamId(%this.team); ???
Did anybody got it working ???
With some modifications I got it to work. It is a realy great resource for basic teams im-
plementation. But this resource does not show, how to change the shapeNameHud to
different colors for teams. There is another great resource ' Torque TeamId '
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4943, which
explains how to make this. To get this working, it is necassary, to put first the team implementation
from the first resource. But it doesn't work. As it is written in the TeamId resource, the team color
is initialized with :
# Lets continue. # in (GameConnection::createPlayer) # at the very bottom add.. %player.setTeamId(%this.team);
As I think, the team number is not 'team'. I think we have to use the 'teamId' variable. But also
with this variable, it does not work. I think 'teamId' has no value in GameConnection::createPlayer,
so this does not work. But in which function can I initial %player.setTeamId(%this.team); ???
Did anybody got it working ???
#2
to use %player.setTeamId(%this.team.teamId); to get a teamId. But also with this modification
I did not get a color change or something else.
02/15/2005 (9:06 am)
Yes I added the enemyTextColor to the playGui.gui shapeNameHud. I found out that we haveto use %player.setTeamId(%this.team.teamId); to get a teamId. But also with this modification
I did not get a color change or something else.
Torque 3D Owner Howard Dortch
Default Studio Name