1,544
edits
DrinkyBird (talk | contribs) (Created page with "{{Template:ACSWarning}} int '''PlayerTeam''' (void) ==Usage== This function returns the activator's team, or the amount of teams if the player is not on a team. This is equi...") |
DrinkyBird (talk | contribs) mNo edit summary Tag: Source edit |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
int '''PlayerTeam''' (void) | int '''PlayerTeam''' (void) | ||
==Usage== | == Usage == | ||
=== Return value === | |||
This function returns the activator's team, or the amount of teams if the player is not on a team. This is equivalent to <code>{{Zdoomwiki|GetPlayerInfo}}(PlayerNumber(), PLAYERINFO_TEAM)</code>. This function always returns 0 in a CLIENTSIDE script; use <code>GetPlayerInfo(ConsolePlayerNumber(), PLAYERINFO_TEAM)</code> instead. | |||
*'''TEAM_BLUE''' = 0 | *'''TEAM_BLUE''' = 0 | ||
:The player is on the Blue team. | :The player is on the Blue team. | ||
Line 15: | Line 16: | ||
==Examples== | ==Examples== | ||
<syntaxhighlight lang="c" line="1"> | <syntaxhighlight lang="c" line="1"> | ||
Script 1 ENTER | Script 1 ENTER | ||
Line 29: | Line 29: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[category:ACS | |||
[[category:ACS functions]] |