<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Player.GetTeam_%28Civ5_API%29</id>
	<title>Player.GetTeam (Civ5 API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Player.GetTeam_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Player.GetTeam_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-12T17:53:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Player.GetTeam_(Civ5_API)&amp;diff=12032&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Player.GetTeam_(Civ5_API)&amp;diff=12032&amp;oldid=prev"/>
		<updated>2012-09-20T08:42:39Z</updated>

		<summary type="html">&lt;p&gt;Bot update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Civ5 API Beta Banner}}&lt;br /&gt;
&amp;#039;&amp;#039;This page is a part of the [[Lua and UI Reference (Civ5)]].&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TypeInfos5|Function.png|This function is a member of {{Type5|Player}}.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is an instance method, invoke it with a colon.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;{{Type5|PlayerID}} Player:GetTeam&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;&amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Returned Value&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:No description available.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source code samples=&lt;br /&gt;
&amp;#039;&amp;#039;Too many occurences. Only 50 out of 391 are listed.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|CityBannerManager.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/CityBannerManager.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0459}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (Teams[Game.GetActiveTeam()]:IsHasMet(player:GetTeam())) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0581}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local team = Players[playerID]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0657}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local cityTeam = Players[instance.playerID]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0814}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local active_team = Players[Game.GetActivePlayer()]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1113}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;elseif (Teams[Game.GetActiveTeam()]:IsHasMet(player:GetTeam())) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|CityBannerManager.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/UI/InGame/CityBannerManager.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0193}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;elseif (not Teams[Game.GetActiveTeam()]:IsHasMet(player:GetTeam())) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|CityStateDiploPopup.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/CityStateDiploPopup.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0265}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (Teams[Players[iAlly]:GetTeam()]:IsHasMet(Game.GetActiveTeam())) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|CityStateStatusHelper.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/UI/CityStateStatusHelper.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0054}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iMajorTeam = pMajor:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|CivilopediaScreen.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/Civilopedia/CivilopediaScreen.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|1996}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local pTeam = Teams[pPlayer:GetTeam()];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|CivsAlive.lua - DLC_01 DLC}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0137}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local eDestroyedTeam = Players[playerID]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Demographics.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/Demographics.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0328}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iTeam = pPlayer:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|DiploCorner.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/WorldView/DiploCorner.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0273}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iOtherTeam = Players[iOtherPlayer]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0440}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;g_iLocalTeam = g_pLocalPlayer:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|DiploGlobalRelationships.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/DiploGlobalRelationships.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0182}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iThirdTeam = pThirdPlayer:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|DiploList.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/DiploList.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0019}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local g_iTeam = g_pPlayer:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|DiploRelationships.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/DiploRelationships.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0054}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (pPlayer:GetTeam() ~= iOtherTeam and pOtherPlayer:IsAlive()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0376}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local bWar = Teams[Game.GetActiveTeam()]:IsAtWar(pPlayer:GetTeam());&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|DiscussionDialog.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/LeaderHead/DiscussionDialog.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0187}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (pAIPlayer:GetTeam() ~= Players[iActivePlayer]:GetTeam()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|InGame.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/InGame.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0236}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (plot:IsVisible(player:GetTeam(), false) and (plot:IsVisibleEnemyDefender(pUnit) or plot:IsEnemyCity(pUnit))) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|MPList.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/WorldView/MPList.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0007}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local g_pLocalTeam = Teams[ Players[ Game.GetActivePlayer() ]:GetTeam() ];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0382}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;g_pLocalTeam = Teams[ Players[ Game.GetActivePlayer() ]:GetTeam() ];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|North_vs_South.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/North_vs_South.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0602}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local team_ID = player:GetTeam()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0603}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if team_ID == teamNorthID then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|PlotMouseoverInclude.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/PlotMouseoverInclude.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0359}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local plotTeam = pPlayer:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Ranking.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/Ranking.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0019}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (pPlayer:GetTeam() == Game:GetWinner()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|ReligionOverview.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0485}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local activeTeam = Teams[activePlayer:GetTeam()];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|ResourceIconManager.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/ResourceIconManager.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0084}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if( plot:IsRevealed( pPlayer:GetTeam(), false ) ) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0088}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if( not bIsBuilt and pPlayer:GetTeam() == Game.GetActiveTeam() ) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TechPopup.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/UI/InGame/TechPopup.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0139}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local opponentTeam = Teams[opponentPlayer:GetTeam()];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TradeLogic.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/WorldView/TradeLogic.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0103}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;g_iThemTeam = g_pThem:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0464}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iLoopTeam = pLoopPlayer:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|2557}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iFromTeam = Players[iFromPlayer]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TradeLogic.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/UI/InGame/WorldView/TradeLogic.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|2003}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iTeam = player:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TurnsRemaining.lua - DLC_02 DLC}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0020}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Game.SetWinner(player:GetTeam(), GameInfo.Victories[&amp;quot;VICTORY_DOMINATION&amp;quot;].ID);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0261}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (pLoopPlayer:GetTeam() == myTeam) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TurnsRemaining.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0108}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Game.SetWinner(Players[Game.GetActivePlayer()]:GetTeam(), GameInfo.Victories[&amp;quot;VICTORY_TIME&amp;quot;].ID);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0434}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iRecipient = pAlly:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0973}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local vaticanTeamID = Players[iVaticanPlayer]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0975}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local jerusalemTeamID = Players[iJerusalemPlayer]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1236}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;pTeam = Teams[pPlayer:GetTeam()];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TurnsRemaining.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0528}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (Players[iPlayer]:GetTeam() == iTeam) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TutorialChecks.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Tutorial/TutorialChecks.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|1064}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (player:GetTeam() ~= iOtherTeam and pOtherPlayer:IsAlive()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|UnitFlagManager.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/UnitFlagManager.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0849}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if( Game.GetActiveTeam() == Players[ self.m_PlayerID ]:GetTeam() ) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|VictoryProgress.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/VictoryProgress.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0270}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local pTeam = Teams[ pPlayer:GetTeam() ];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0374}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;not pPlayer:IsAlive() or Teams[pPlayer:GetTeam()]:GetLiberatedByTeam() ~= -1,&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0440}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if(Teams[pPlayer:GetTeam()]:GetProjectCount(proj) &amp;gt; 0)then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0604}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local pTeamB = Teams[ playerB:GetTeam() ];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|VictoryProgress.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/UI/InGame/Popups/VictoryProgress.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0669}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table.sort(sortedPlayerList, function(a, b) return Teams[Players[b]:GetTeam()]:GetTotalProjectedVotes() &amp;lt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0670}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Teams[Players[a]:GetTeam()]:GetTotalProjectedVotes() end );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|VoteResultsPopup.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/VoteResultsPopup.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0043}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if ((pPlayer:GetID() == activePlayer:GetID()) or (activePlayer:GetTeam() == pTeam:GetID())) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|VoteResultsPopup.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Scenarios/MedievalScenario/VoteResultsPopup.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0237}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iTeamLoop = Players[iPlayerLoop]:GetTeam();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Civ5 API Footer}}&lt;br /&gt;
[[Category:Civ5 Methods and Functions|GetTeam]]&lt;br /&gt;
[[Category:Civ5 Diplomacy API|GetTeam]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>