ScarDoc

Start typing to search the SCAR reference.

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

  • playerPlayerIDrequired
  • entitytypes/unit_typesBlueprintTable/StringTablerequired

Returns

EntityID

Source

Declared in the game's script sources at:

scar/player.scar