playMission: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}}") |
Lou Montana (talk | contribs) m (Add group) |
||
Line 5: | Line 5: | ||
|1.00|Game version= | |1.00|Game version= | ||
|gr1= System |GROUP1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 12: | Line 14: | ||
| '''playMission''' [campaign, mission, skipBriefing] |SYNTAX= | | '''playMission''' [campaign, mission, skipBriefing] |SYNTAX= | ||
|p1= | |p1= campaign: [[String]] |PARAMETER1= | ||
|p2 | |p2= mission: [[String]] or [[Config]]|PARAMETER2= | ||
|p3= skipBriefing (optional): [[Boolean]] |PARAMETER3= | |||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
Line 41: | Line 42: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands OFP Elite |{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP Elite | |||
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 14:33, 25 September 2020
Description
- Description:
- The mission is launched (from the main menu). Both campaign and mission are given as their directory name. If the campaign is empty, a single mission is launched. If skipBriefing is true, the intro and briefing are skipped.
- Groups:
- System
Syntax
- Syntax:
- playMission [campaign, mission, skipBriefing]
- Parameters:
- campaign: String
- mission: String or Config
- skipBriefing (optional): Boolean
- Return Value:
- Nothing
Examples
- Example 1:
playMission ["XOutrage","x05Negotiator.Noe"];
- Example 2:
playMission ["", configFile >> "CfgMissions" >> "Missions" >> "Armory1"];
- Example 3:
playMission ["","\A3\Missions_F_Bootcamp\Scenarios\Arsenal.VR"];
Additional Information
- See also:
- hostMissionplayScriptedMission
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