Plot.GetUnit (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of Plot. This is an instance method, invoke it with a colon. |
Usage
Returned Value
- No description available.
Parameters
id: No description available.
Source code samples
Redundant occurences have been removed.
EnemyUnitPanel.lua
UI/InGame/WorldView/EnemyUnitPanel.lua
1831
|
pUnit = pPlot:GetUnit(i); |
1933
|
local theirUnit = pPlot:GetUnit(i); |
InGame.lua
UI/InGame/InGame.lua
0183
|
local pFoundUnit = plot:GetUnit(i); |
PlotMouseoverInclude.lua
UI/InGame/PlotMouseoverInclude.lua
0256
|
local unit = plot:GetUnit(i); |
TurnsRemaining.lua - DLC_04 DLC
DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0470
|
pPlot:GetUnit(0):Kill(true, -1); |
0749
|
Map.GetPlot(42,39):GetUnit(0):SetDeployFromOperationTurn(1); |
0750
|
Map.GetPlot(43,39):GetUnit(0):SetDeployFromOperationTurn(1); |
0751
|
Map.GetPlot(42,38):GetUnit(0):SetDeployFromOperationTurn(1); |
0752
|
Map.GetPlot(43,38):GetUnit(0):SetDeployFromOperationTurn(1); |
0753
|
Map.GetPlot(44,38):GetUnit(0):SetDeployFromOperationTurn(1); |
0754
|
Map.GetPlot(42,37):GetUnit(0):SetDeployFromOperationTurn(1); |
0755
|
Map.GetPlot(43,37):GetUnit(0):SetDeployFromOperationTurn(1); |
0756
|
Map.GetPlot(44,37):GetUnit(0):SetDeployFromOperationTurn(1); |
0757
|
Map.GetPlot(45,37):GetUnit(0):SetDeployFromOperationTurn(1); |
0758
|
Map.GetPlot(43,36):GetUnit(0):SetDeployFromOperationTurn(1); |
0759
|
Map.GetPlot(44,36):GetUnit(0):SetDeployFromOperationTurn(1); |
0760
|
Map.GetPlot(45,36):GetUnit(0):SetDeployFromOperationTurn(1); |
0761
|
Map.GetPlot(43,35):GetUnit(0):SetDeployFromOperationTurn(1); |
0762
|
Map.GetPlot(44,35):GetUnit(0):SetDeployFromOperationTurn(1); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua
1043
|
pPlot:GetUnit(0):Kill(false, -1); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
1076
|
pUnit = startPlot:GetUnit(i); |
1390
|
elseif (plot:GetUnit(0) ~= nil) then |
1402
|
elseif (adjPlot:GetUnit(0) ~= nil) then |
UnitFlagManager.lua
UI/InGame/UnitFlagManager.lua
0595
|
local test = plot:GetUnit( i ); |
1027
|
local pPlotUnit = pPlot:GetUnit( i ); |
1261
|
local unit = plot:GetUnit( i ); |
1445
|
local pUnit = pPlot:GetUnit( i ); |
The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.