# 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.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:4905

    }

    PlayerScoreValueEnable(gv_pLAYER_01_USER, "UnitsTrainedCount", false);
    libNtve_gf_CreateUnitsAtPoint2(1, "Marine", 0, gv_pLAYER_01_USER, PointFromId(1308));
    UnitGroupAdd(lv_craneMarines, UnitLastCreated());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:5778

    CameraApplyInfo(gv_p1_USER, CameraInfoFromId(346), 0.0, -1, 10, true);
    TriggerExecute(gt_VictoryDropship, true, false);
    PlayerScoreValueEnable(gv_p1_USER, "UnitsTotalCount", false);
    autoAC1EACCB_var = 1;
    for ( ; autoAC1EACCB_var <= autoAC1EACCB_ae; autoAC1EACCB_var += 1 ) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:4905

    }

    PlayerScoreValueEnable(gv_pLAYER_01_USER, "UnitsTrainedCount", false);
    libNtve_gf_CreateUnitsAtPoint2(1, "Marine", 0, gv_pLAYER_01_USER, PointFromId(1308));
    UnitGroupAdd(lv_craneMarines, UnitLastCreated());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:5778

    CameraApplyInfo(gv_p1_USER, CameraInfoFromId(346), 0.0, -1, 10, true);
    TriggerExecute(gt_VictoryDropship, true, false);
    PlayerScoreValueEnable(gv_p1_USER, "UnitsTotalCount", false);
    autoAC1EACCB_var = 1;
    for ( ; autoAC1EACCB_var <= autoAC1EACCB_ae; autoAC1EACCB_var += 1 ) {