Warning: file_put_contents(/ff_275c59832ee12e37caefd36d742acb249ec5457aac0ad24d.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
hostMission - OFPEC Scripting Command Reference | OFPEC The Editing Center

hostMission [Config, Display]

Operand types

[Config, Display]: Array

Type of returned value


Host the mp mission described by config class. Should be called as reaction to some UI action in some dialog.

For example you can start a MP scenario from a button. It creates a host and takes you to the lobby with the scenario loaded.

You need to provide the display which is active when the hostMission command is called.

The operand types are:
- Config
- Display

Used In



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