Function
Player
Player_GetBuildingID
Returns the entityID of the first player owned building listed in the table.
On this page
Player_GetBuildingID(player, entitytypes/unit_types)Description
This only looks at completed buildings
Parameters
playerPlayerIDrequiredentitytypes/unit_typesBlueprintTable/StringTablerequired
Returns
EntityIDSource
Declared in the game's script sources at:
scar/player.scar