# Apply Player Skin (Replacing Existing Unit)

GrammaractivateDeactivate Skin skin for Player player (Replacing).
FlagsAction

Sets the skin of the specified player.This also replace the model of existed units.

# Arguments

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

Returns — void

void libNtve_gf_PlayerApplySkinReplacingExistingUnit(
	int lp_player,
	string lp_skin,
	bool lp_activateDeactivate,
);

Category: Player / Player Settings

# Examples

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:2112

    TechTreeUpgradeAllow(lp_player, "CycloneAirUpgrade", false);
    libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "BlackOps", 1);
    libNtve_gf_PlayerApplySkinReplacingExistingUnit(lp_player, "Nova_BlackOps", true);
    libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "NovaWarpOut", 1);
    libComC_gf_EnableCampaignTechUnit(true, "CommandCenter", lp_player);