hostMission: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9]) *= * <code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "user= kju" to "user= .kju")
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
|x1= <sqf>hostMission [configFile >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];</sqf>
|x1= <sqf>hostMission [configFile >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];</sqf>


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


|seealso= [[playScriptedMission]] [[playMission]]
|seealso= [[playScriptedMission]] [[playMission]]
Line 34: Line 34:


{{Note
{{Note
|user= kju
|user= .kju
|timestamp= 20110103165100
|timestamp= 20110103165100
|text= The command must be called in the main menu or something similar menu it seems.
|text= The command must be called in the main menu or something similar menu it seems.
}}
}}

Latest revision as of 21:33, 3 May 2024

Hover & click on the images for description

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:
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
.kju - c
Posted on Jan 03, 2011 - 16:51 (UTC)
The command must be called in the main menu or something similar menu it seems.