# Disable Achievements

Grammar — Disable all achievements for p
FlagsNative | Action

# Arguments

  • int — Player

Returns — void

native void AchievementsDisable(int player);

Category: Game / Achievements

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8221

    libCamp_gf_TS_UpdateStoryStates();
    if ((libCamp_gf_StoryState(libCamp_ge_StoryStateID_StoryStateAchievementDisabled) > 0)) {
        AchievementsDisable(1);
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13161

        libSwaC_gv_zS_ZerglingRespawnCount = libSwaC_gf_ZS_LoadTransitionVarInteger(lp_sourceBank, lv__SectionName, ("ZerglingRespawn"), 0);
        if ((libSwaC_gf_ZS_LoadTransitionVarBoolean(lp_sourceBank, lv__SectionName, ("AchievementsDisabled"), false) == true)) {
            AchievementsDisable(1);
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7135

        libVoiC_gv_pCX_MapInstanceID += 1;
        if ((libVoiC_gf_PC_LoadTransitionVarBoolean(lp_sourceBank, lv__SectionName, ("AchievementsDisabled"), false) == true)) {
            AchievementsDisable(1);
        }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:6299

        libA3DDD02B_gf_PP_SetCampaignDifficulty(libA3DDD02B_gf_PP_DifficultyFromIndex(libA3DDD02B_gf_PP_LoadTransitionVarInteger(lp_sourceBank, lv__SectionName, ("Difficulty"), 0)));
        if ((libA3DDD02B_gf_PP_LoadTransitionVarBoolean(lp_sourceBank, lv__SectionName, ("AchievementsDisabled"), false) == true)) {
            AchievementsDisable(1);
        }