hostMission: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added a better description)
(Clarification of the display parameter thanks to DnA.)
Line 9: Line 9:
| 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.


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. |= Description
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. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 22: Line 24:
|x1= <code>'''hostMission''' [configMissionName, display];</code> |=  
|x1= <code>'''hostMission''' [configMissionName, display];</code> |=  


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



Revision as of 16:48, 3 January 2011

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:
Uncategorised

Syntax

Syntax:
hostMission [Config, Display]
Parameters:
Config: Config
Config: Display
Return Value:
Nothing

Examples

Example 1:
hostMission [configMissionName, display];
Example 2:
hostMission [configFile/"CfgMissions"/"MPMissions"/_scenarioClassName, _currentlyActiveDisplay];

Additional Information

See also:
playScriptedMission

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

Bottom Section