hostMission: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2oa |Game name=
| arma2oa


|1.55|Game version=
|1.55


|gr1 = Multiplayer |GROUP1=
|gr1 = Multiplayer




Line 11: Line 11:
| Host the mp mission described by config class. Should be called as reaction to some UI action in some dialog.<br>
| Host the mp mission described by config class. Should be called as reaction to some UI action in some dialog.<br>
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.<br>
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.<br>
You need to provide the display which is active when the hostMission command is called. |DESCRIPTION=
You need to provide the display which is active when the hostMission command is called.


| [[hostMission]] [pConfig, pDisplay] |SYNTAX=
| [[hostMission]] [pConfig, pDisplay]


|p1= [pConfig, pDisplay]: [[Array]] |Parameter1=
|p1= [pConfig, pDisplay]: [[Array]]


|p2= pConfig: [[Config]] |Parameter2=
|p2= pConfig: [[Config]]


|p3= pDisplay: [[Display]] |Parameter3=
|p3= pDisplay: [[Display]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1= <code>[[hostMission]] [configMissionName, display];</code> |Example1=
|x1= <code>[[hostMission]] [configMissionName, display];</code>


|x2= <code>[[hostMission]] [<nowiki/>[[configFile]] >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];</code> |Example2=
|x2= <code>[[hostMission]] [<nowiki/>[[configFile]] >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];</code>


|x3= '''{{arma3}}:''' Launch host mission dialog from a client on dedicated server:
|x3= '''{{arma3}}:''' Launch host mission dialog from a client on dedicated server:
Line 31: Line 31:
[[configFile]] >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01",
[[configFile]] >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01",
[[findDisplay]] 46
[[findDisplay]] 46
];</code> |Example3=
];</code>


| [[playScriptedMission]], [[playMission]] |SEEALSO=
| [[playScriptedMission]], [[playMission]]
}}
}}



Revision as of 00:41, 18 January 2021

Hover & click on the images for description

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.
Groups:
Multiplayer

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:
Arma 3: Launch host mission dialog from a client on dedicated server: hostMission [ configFile >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01", findDisplay 46 ];

Additional Information

See also:
playScriptedMissionplayMission

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

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

Bottom Section