# Set Next Mission Difficulty
Grammar — Set the difficulty level of the next mission to difficulty for players
Flags —Native
|Action
Sets the difficulty for the specified player for the next map. Only supported in single player offline games.
# Arguments
playergroup
— Playersint
[ difficulty ] — Difficulty
Returns — void
native void SetNextMissionDifficulty(
playergroup inPlayerGroup,
int inDifficultyLevel,
);
# Related
Category: Game / Transitions
- [F] —
void
— GameSetNextCampaignIndex — ( GameSetNextCampaignIndex ) - [F] —
void
— End Game For Player — ( GameOver ) - [F] —
void
— Restart Game — ( RestartGame ) - [F] —
void
— Kick From Game — ( KickFromGame ) - [F] —
void
— Set Next Map — ( GameSetNextMap ) - [F] —
void
— Set Transition Map — ( GameSetTransitionMap ) - [F] —
void
— Set Next Mission Difficulty — ( SetNextMissionDifficulty ) - [F] —
bool
— Game Is Transitioned — ( GameIsTransitionMap )
# Examples
# campaigns/libertystory.sc2campaign
// L8350
SetNextMissionDifficulty(PlayerGroupAll(), lp_difficulty)
// L8448
SetNextMissionDifficulty(PlayerGroupSingle(1), lp_difficulty)
# campaigns/swarmstory.sc2campaign
// L12781
SetNextMissionDifficulty(PlayerGroupAll(), lp_difficulty)
// L12834
SetNextMissionDifficulty(PlayerGroupSingle(1), lp_difficulty)
# campaigns/voidstory.sc2campaign
// L6660
SetNextMissionDifficulty(PlayerGroupAll(), lp_difficulty)
// L6705
SetNextMissionDifficulty(PlayerGroupSingle(1), lp_difficulty)
# mods/missionpacks/campaigncommon.sc2mod
// L2900
SetNextMissionDifficulty(PlayerGroupAll(), lp_difficulty)
// L2936
SetNextMissionDifficulty(PlayerGroupSingle(1), lp_difficulty)
# mods/voidprologue.sc2mod
// L5937
SetNextMissionDifficulty(PlayerGroupAll(), lp_difficulty)
// L5978
SetNextMissionDifficulty(PlayerGroupSingle(1), lp_difficulty)