Arma 3 Scripting

hostMission

  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.55

Command · Markdown · JSON · original wiki page

Description

Host the multiplayer mission defined in the config class and opens the lobby with the scenario loaded. Must be called in UI action from a dialog.

Syntax

hostMission [configEntry, activeDisplay]

Parameters:

Returns: Nothing

Examples

Example 1

hostMission [configFile >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];

Example 2

Launch host mission dialog from a client on dedicated server in Arma 3:

hostMission [
    configFile >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01",
    findDisplay 46
];

See also

playScriptedMission · playMission · createMPCampaignDisplay · createMissionDisplay

Community notes

.kju

The command must be called in the main menu or something similar menu it seems.