SetGameTeam (script event)

From modwiki

Jump to: navigation, search
Image:Etqwsquare_bg.png The information on this page is specific to Enemy Territory: Quake Wars.

Game class

This event operates on an instance of the game class type idEntity. Has spawn class specific implementation.

Description

Calls SetGameTeam on entity's spawn class.

Usage

void setGameTeam( object team );

Parameters

[team] - team object. Global object pointers for team objects are named gdfTeam and stroggTeam Can be set to null.

Examples

someEntity.setGameTeam( teamStrogg );
sys.println( "The strogg army grows ever more powerful" );

Notes

Calls SetGameTeam on the entities spawn class. SetGameClass has spawn class specific implementations on the following:

idEntity: Does nothing.

idActor, idItem, idProjectile: Sets team.

idPlayer: Sets team, calls OnSetTeam function on entities script object. Sets player to spectate if team is NULL.

sdScriptEntity: Sets team, calls OnSetTeam function on entities script object. Many entities use this function to manage the change.

Has counterpart getGameTeam.


Personal tools
Main
id Tech 5