ScarDoc

Start typing to search the SCAR reference.

Function
Player

Player_HasBuilding

Returns true if this player owns any buildings listed in the table.

On this page
Player_HasBuilding(player, entitytypes/unit_types)

Description

This only looks at completed buildings - use Player_HasBuildingUnderConstruction to see if the player is building something

Parameters

  • playerPlayerIDrequired
  • entitytypes/unit_typesBlueprintTable/StringTablerequired

Returns

Boolean

Source

Declared in the game's script sources at:

scar/player.scar