hostMission: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 22: | Line 22: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code>hostMission [<nowiki/> | |x1= <code>hostMission [<nowiki/>configFile >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];</code> | ||
|x2= '''{{arma3}}:''' Launch host mission dialog from a client on dedicated server: | |x2= '''{{arma3}}:''' Launch host mission dialog from a client on dedicated server: |
Revision as of 11:09, 12 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:
- 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:
- 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.