Arma 3 Scripting

Command in Multiplayer

hostMission

Also available as Markdown and JSON, or read the 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.