hostMission: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma2oa * +\| *1.([0-9]{2}) * *\|([^g]|g[^a])" to "| arma2oa |1.$1 |game2= tkoh |version2= 1.00 |game3= arma3 |version3= 0.50 |$2") |
m (Replaced <code> with <sqf>) |
||
(15 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2oa | |game1= arma2oa | ||
|1.55 | |version1= 1.55 | ||
|game2= tkoh | |game2= tkoh | ||
Line 12: | Line 12: | ||
|gr1= Multiplayer | |gr1= Multiplayer | ||
| Host the | |descr= 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. | ||
| [[hostMission]] [ | |s1= [[hostMission]] [configEntry, activeDisplay] | ||
|p1= | |p1= configEntry: [[Config]] | ||
|p2= | |p2= activeDisplay: [[Display]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>hostMission [configFile >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];</sqf> | ||
|x2= < | |x2= Launch host mission dialog from a client on dedicated server in {{arma3}}: | ||
<sqf>hostMission [ | |||
configFile >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01", | |||
findDisplay 46 | |||
];</sqf> | |||
| | |seealso= [[playScriptedMission]] [[playMission]] | ||
}} | |||
| | {{Note | ||
|user= kju | |||
|timestamp= 20110103165100 | |||
|text= The command must be called in the main menu or something similar menu it seems. | |||
}} | }} | ||
Revision as of 14:14, 14 May 2022
Description
- 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.
- Groups:
- Multiplayer
Syntax
- Syntax:
- hostMission [configEntry, activeDisplay]
- Parameters:
- configEntry: Config
- activeDisplay: Display
- Return Value:
- 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:
Additional Information
- See also:
- playScriptedMission playMission
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
- Posted on Jan 03, 2011 - 16:51 (UTC)
- The command must be called in the main menu or something similar menu it seems.