# Enable/Disable Score Tracking

Grammarenable|Enable/Disable scoreValue score tracking for player inPlayer
FlagsNative | Action

Enables or disables tracking of a specific statistic for the specified player.

# Arguments

  • int — Player
  • string [ gamelink::ScoreValue ] — Score Value
  • bool [ preset::Enable_Disable_Option ] — Enable

Returns — void

native void PlayerScoreValueEnable(
	int player,
	string value,
	bool enable,
);

Category: Story / Victory Panel

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L4905
PlayerScoreValueEnable(gv_pLAYER_01_USER, "UnitsTrainedCount", false)
// L5778
PlayerScoreValueEnable(gv_p1_USER, "UnitsTotalCount", false)
// L4905
PlayerScoreValueEnable(gv_pLAYER_01_USER, "UnitsTrainedCount", false)
// L5778
PlayerScoreValueEnable(gv_p1_USER, "UnitsTotalCount", false)