# 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.sc2campaign

MapScript.galaxy

// L1130
PlayerApplySkin(autoE95D56D5_var, "TaldarimSkin", true)
// L1130
PlayerApplySkin(autoE95D56D5_var, "TaldarimSkin", true)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L6171
PlayerApplySkin(1, libVoiC_gf_PC_ArmyUnitSkin(lv_armyCategory2), true)

# mods/core.sc2mod

NativeLib.galaxy

// L3617
PlayerApplySkin(lp_player, lp_skin, lp_activateDeactivate)

# mods/heroesdata.stormmod

GameLib.galaxy

// L5916
PlayerApplySkin(lp_player, PlayerSkin(lp_player), true)

# mods/liberty.sc2mod

LibertyLib.galaxy

// L978
PlayerApplySkin(lv_itPlayer, lv_itSkin, true)

# mods/missionpacks/campaigncommon.sc2mod

LibComC.galaxy

// L1887
PlayerApplySkin(lp_player, libComC_gf_NC_ArmyUnitSkin(lv_armyCategory2), true)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L1287
PlayerApplySkin(gv_pLAYER_05_TALDARIM, "TaldarimSkin", true)
// L3191
PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true)
// L3192
PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true)
// L1287
PlayerApplySkin(gv_pLAYER_05_TALDARIM, "TaldarimSkin", true)
// L3191
PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true)
// L3192
PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L3654
PlayerApplySkin(lp_player, lp_skin, lp_activateDeactivate)
// L12740
PlayerApplySkin(StringToInt(StringWord(EventChatMessage(false), 3)), (StringWord(EventChatMessage(false), 2)), true)
// L12743
PlayerApplySkin(EventPlayer(), (StringWord(EventChatMessage(false), 2)), true)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L1129
PlayerApplySkin(lp_player, UserDataGetGameLink("PlayerPrestige", lp_prestige, "Skin", 1), true)
// L2134
PlayerApplySkin(lp_player, libCOOC_gf_CC_CommanderSkin(lv_playerCommander), true)
// L3360
PlayerApplySkin(lp_player, UserDataGetGameLink("CampaignPerk", lp_perk, "CampaignPerkSkin", 1), true)
// L4023
PlayerApplySkin(lp_player, libCOOC_gf_CC_ArmyUnitSkin(lv_armyCategory2), true)