hostMission

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.55
  

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.55

Description

Description:
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.

Syntax

Syntax:
hostMission [pConfig, pDisplay]
Parameters:
[pConfig, pDisplay]: Array
pConfig: Config
pDisplay: Display
Return Value:
Nothing

Examples

Example 1:
hostMission [configMissionName, display];
Example 2:
hostMission [configFile/"CfgMissions"/"MPMissions"/_scenarioClassName, _currentlyActiveDisplay];
Example 3:
Launch host mission dialog in Arma 3 from a client on dedicated serverhostMission [ configFile >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01", findDisplay 46 ];

Additional Information

Multiplayer:
-
See also:
playScriptedMissionplayMission

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on January 03, 2011
kju
The command must be called in the main menu or something similar menu it seems.

Bottom Section