PlayerTeam

From ZDoom Wiki
Jump to: navigation, search
Warning: This feature is Skulltag specific, and is not compatible with ZDoom!
To see all of Skulltag's specific features, see Skulltag features.

int PlayerTeam (void)

Usage

Returns the team of the player who activated the function.

Return value

The current team of the player. For readability there are definitions defined in Skulltag's zdefs.acs as follows:

  • TEAM_BLUE = 0
The player is on the blue team.
  • TEAM_RED = 1
The player is on the red team.
  • NO_TEAM = 2
The player is not set to any team.

Example

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.
Personal tools
Namespaces

Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox