Page 1 of 1

Player teams & 3D messages

Posted: April 9th, 2008, 10:33 pm
by exsolved
Hey CodJumper.com

I require a little help with scripting here, I am modifying war.gsc to create a new game type, and would like to know the command to call to force a player to another/opposite team. It's currently laid out like so:

Code: Select all

_infectLifeMath()
{
if( self.pers["team"] == "allies" && self.pers["deaths"] > 0 )
{
//Make em move to axis
}
}
And I need to replace "//Make em move to axis" with the code or function to force the player to the Axis team.

Other than that, can any of you help me... I'm trying to create text to appear on screen. However, I don't want the normal 2d text you can get with IPrintLnBold, but that cool looking text that appears letter by letter, and disappears in the same way.

Thank you all!
~ eXsolved

Re: Player teams & 3D messages

Posted: April 10th, 2008, 3:15 am
by Drofder2004
the info you seek, should be found in the IW gscs.

Take a look at the menus.gsc
In there, look for where the option to switch team is called, once you have found that, you will find the code ;)