hostMission: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Host the mp mission described by config class. Should be called as reaction to some UI action in some dialog. | | 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> | |||
You need to provide the display which is active when the hostMission command is called. |DESCRIPTION= | |||
____________________________________________________________________________________________ | |||
| [[hostMission]] [pConfig, pDisplay] |SYNTAX= | |||
|p1= [pConfig, pDisplay]: [[Array]] |Parameter1= | |||
| | |p2= pConfig: [[Config]] |Parameter2= | ||
|p3= pDisplay: [[Display]] |Parameter3= | |||
|p3= pDisplay: [[Display]] |= | |||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code> | |x1= <code>[[hostMission]] [configMissionName, display];</code> |Example1= | ||
|x2= <code>[[hostMission]] <nowiki>[</nowiki>[[configFile]] | |x2= <code>[[hostMission]] <nowiki>[</nowiki>[[configFile]] >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];</code> |Example2= | ||
|x3= Launch host mission dialog | |x3= '''{{arma3}}:''' Launch host mission dialog from a client on dedicated server: | ||
<code>[[hostMission]] [ | |||
[[configFile]] >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01", | [[configFile]] >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01", | ||
[[findDisplay]] 46 | [[findDisplay]] 46 | ||
];</code> |= | ];</code> |Example3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 42: | Line 43: | ||
<dd class="notedate">Posted on January 03, 2011 | <dd class="notedate">Posted on January 03, 2011 | ||
<dt class="note"> | <dt class="note">[[User:kju|kju]] | ||
<dd class="note"> | |||
The command must be called in the main menu or something similar menu it seems. | The command must be called in the main menu or something similar menu it seems. | ||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 23:13, 2 September 2019
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:
- Uncategorised
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
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.55
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- ArmA 2 OA: New Scripting Commands List
- Command Group: Multiplayer