GetGameTeam (script event)

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

Returns the script object of the entity’s team, or null if none.

Usage

string getGameTeam()

Parameters

This event does not accept parameters.

Examples

if ( someEntity.getGameTeam() == teamStrogg ) {
    sys.println( "Makron is feeling peckish, harvest more humans!" );
}

Notes

Returns object pointer of team. Named object pointers for teams are gdfTeam and stroggTeam for comparison.

The following spawn classes can have their team set: idActor , idItem , idProjectile , idPlayer , sdScriptEntity .

Has counterpart setGameTeam .