Checks if the player's current skin is one of the given skins.
Scope
This command can be called anywhere.
Syntax
IfCurrentSkin( ...skins )Game.IfCurrentSkin( ...skins )- ...skins: List up to 15 skin names to check as separate arguments.
- Skin names are case-insensitive.
Examples
IfCurrentSkin("h_fat")
{
// Add an extra stage to the mission if the player started the mission with fat-ass Homer
AddStage();
// ...
CloseStage();
}Game.IfCurrentSkin("h_fat")
-- Add an extra stage to the mission if the player started the mission with fat-ass Homer
Game.AddStage()
-- ...
Game.CloseStage()
Game.EndIf()Notes
Due to the nature of how console scripts work in the game, all conditional commands are evaluated at the time the script is executed. This unfortunately limits the utility of many of these types of commands, but we believe they still have some use cases even with this limitation.