# Apply Player Skin

GrammaractivateDeactivate Skin skin for Player player.
FlagsNative | Action

Sets the skin of the specified player.

# Arguments

  • int — Player
  • string<gamelink::Skin> — Skin
  • bool<preset::ActivateDeactivate> — Activate/Deactivate

Returns — void

native void PlayerApplySkin(
	int inPlayer,
	string inSkin,
	bool apply,
);

Category: Player / Player Settings

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1130

        PlayerModifyPropertyInt(autoE95D56D5_var, c_playerPropSuppliesMade, c_playerPropOperSetTo, 200);
        libNtve_gf_SetUpgradeLevelForPlayer(autoE95D56D5_var, "DarkProtoss", 1);
        PlayerApplySkin(autoE95D56D5_var, "TaldarimSkin", true);
        PlayerSetColorIndex(autoE95D56D5_var, 1, true);
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2mapMapScript.galaxy:1130

        PlayerModifyPropertyInt(autoE95D56D5_var, c_playerPropSuppliesMade, c_playerPropOperSetTo, 200);
        libNtve_gf_SetUpgradeLevelForPlayer(autoE95D56D5_var, "DarkProtoss", 1);
        PlayerApplySkin(autoE95D56D5_var, "TaldarimSkin", true);
        PlayerSetColorIndex(autoE95D56D5_var, 1, true);
    }

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

        if ((lp_enableDisable == true)) {
            CatalogLinkReplace(lp_player, c_gameCatalogUnit, (libVoiC_gf_PC_ArmyCategoryUnitType(libVoiC_gf_PC_ArmyCategoryOfArmyUnit(lv_armyCategory2))), (libVoiC_gf_PC_StoryArmyUnitUnitType(lv_armyCategory2)));
            PlayerApplySkin(1, libVoiC_gf_PC_ArmyUnitSkin(lv_armyCategory2), true);
        }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3617


    // Implementation
    PlayerApplySkin(lp_player, lp_skin, lp_activateDeactivate);
    if ((lp_activateDeactivate == false)) {
        lv_fromPath = "To";

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:5916


    }
    PlayerApplySkin(lp_player, PlayerSkin(lp_player), true);
}

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:978

                lv_itPlayer = PlayerGroupNextPlayer(autoB7B8D940_g, lv_itPlayer);
                if (lv_itPlayer < 0) { break; }
                PlayerApplySkin(lv_itPlayer, lv_itSkin, true);
            }
        }

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:1887

        if ((lp_enableDisable == true)) {
            CatalogLinkReplace(lp_player, c_gameCatalogUnit, (libComC_gf_CC_ArmyCategoryUnitType(lv_armyCategory)), (libComC_gf_NC_StoryArmyUnitUnitType(lv_armyCategory2)));
            PlayerApplySkin(lp_player, libComC_gf_NC_ArmyUnitSkin(lv_armyCategory2), true);
        }

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:1355

    libNovC_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_05_TALDARIM, "DarkProtoss", 1);
    PlayerApplySkin(gv_pLAYER_05_TALDARIM, "TaldarimSkin", true);
    libComC_gf_EnableCampaignTechUnit(true, "Goliath", gv_pLAYER_01_USER);
    libComC_gf_EnableCampaignTechUnit(true, "Banshee", gv_pLAYER_01_USER);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:3291

    TechTreeUpgradeAddLevel(gv_pLAYER_02_PROTOSS_BULLIES, "DarkProtoss", 1);
    TechTreeUpgradeAddLevel(gv_pLAYER_04_PROTOSS_WAVES, "DarkProtoss", 1);
    PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true);
    PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true);
    TechTreeUpgradeAddLevel(gv_pLAYER_06_TERRAZINE, "FireSuppressionSystems", 1);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:3292

    TechTreeUpgradeAddLevel(gv_pLAYER_04_PROTOSS_WAVES, "DarkProtoss", 1);
    PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true);
    PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true);
    TechTreeUpgradeAddLevel(gv_pLAYER_06_TERRAZINE, "FireSuppressionSystems", 1);
    TechTreeUpgradeAddLevel(gv_pLAYER_10_TERRAZINETARGET, "FireSuppressionSystems", 1);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2mapMapScript.galaxy:1355

    libNovC_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_05_TALDARIM, "DarkProtoss", 1);
    PlayerApplySkin(gv_pLAYER_05_TALDARIM, "TaldarimSkin", true);
    libComC_gf_EnableCampaignTechUnit(true, "Goliath", gv_pLAYER_01_USER);
    libComC_gf_EnableCampaignTechUnit(true, "Banshee", gv_pLAYER_01_USER);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:3291

    TechTreeUpgradeAddLevel(gv_pLAYER_02_PROTOSS_BULLIES, "DarkProtoss", 1);
    TechTreeUpgradeAddLevel(gv_pLAYER_04_PROTOSS_WAVES, "DarkProtoss", 1);
    PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true);
    PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true);
    TechTreeUpgradeAddLevel(gv_pLAYER_06_TERRAZINE, "FireSuppressionSystems", 1);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:3292

    TechTreeUpgradeAddLevel(gv_pLAYER_04_PROTOSS_WAVES, "DarkProtoss", 1);
    PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true);
    PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true);
    TechTreeUpgradeAddLevel(gv_pLAYER_06_TERRAZINE, "FireSuppressionSystems", 1);
    TechTreeUpgradeAddLevel(gv_pLAYER_10_TERRAZINETARGET, "FireSuppressionSystems", 1);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:3654


    // Implementation
    PlayerApplySkin(lp_player, lp_skin, lp_activateDeactivate);
    if ((lp_activateDeactivate == false)) {
        lv_fromPath = "To";

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12776


    if ((StringLength(StringWord(EventChatMessage(false), 3)) >= 1)) {
        PlayerApplySkin(StringToInt(StringWord(EventChatMessage(false), 3)), (StringWord(EventChatMessage(false), 2)), true);
    }
    else {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12779

    }
    else {
        PlayerApplySkin(EventPlayer(), (StringWord(EventChatMessage(false), 2)), true);
    }
    return true;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:1129

        libCOOC_gf_CC_PlayerResponseEnable(lp_player, UserDataGetUserInstance("PlayerPrestige", lp_prestige, "PlayerResponses", lv_index), true);
    }
    PlayerApplySkin(lp_player, UserDataGetGameLink("PlayerPrestige", lp_prestige, "Skin", 1), true);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:2134

    libCOOC_gf_CC_ApplyMasteryTech(lp_player);
    if ((libCOOC_gf_CC_CommanderSkin(lv_playerCommander) != "")) {
        PlayerApplySkin(lp_player, libCOOC_gf_CC_CommanderSkin(lv_playerCommander), true);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:3360

        lv_upgradeLevel = 1;
        if ((UserDataGetGameLink("CampaignPerk", lp_perk, "CampaignPerkSkin", 1) != "")) {
            PlayerApplySkin(lp_player, UserDataGetGameLink("CampaignPerk", lp_perk, "CampaignPerkSkin", 1), true);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:4023

        if ((lp_enableDisable == true)) {
            CatalogLinkReplace(lp_player, c_gameCatalogUnit, (libCOOC_gf_CC_ArmyCategoryUnitType(libCOOC_gf_CC_ArmyCategoryOfArmyUnit(lv_armyCategory2))), (libCOOC_gf_CC_StoryArmyUnitUnitType(lv_armyCategory2)));
            PlayerApplySkin(lp_player, libCOOC_gf_CC_ArmyUnitSkin(lv_armyCategory2), true);
        }