GetBuilding
- Parameters
p playerTarget player
- comment
Get the last constructed or pre-placed building for the given player.
- note
For pre-placed buildings the order is the number that you find in the WE. Example: Blacksmith_0023, Workshop_0065, then the last building will be Workshop_0065, but if a peasent in game constructed an altar then that will be the last building.
- note
Player
pcan be a human controlled player not necessarily computer.- common.ai native
- To use this native you have to declare it in your script.
- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
unit- Source code
native GetBuilding takes player p returns unit