playMission: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}}")
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= [campaign, mission, skipBriefing]: [[Array]] |PARAMETER1=
|p1= campaign: [[String]] |PARAMETER1=


|p2= campaign: [[String]] |PARAMETER2=
|p2= mission: [[String]] or [[Config]]|PARAMETER2=
|p3= mission: [[String]] or [[Config]]|PARAMETER3=
|p4= skipBriefing (optional): [[Boolean]] |PARAMETER4=


|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|PLAYMISSION]]
[[Category:Scripting Commands OFP Elite |{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP Elite |PLAYMISSION]]
[[Category:Scripting Commands Armed Assault|PLAYMISSION]]
[[Category:Command_Group:_Mission_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_System|{{uc:{{PAGENAME}}}}]]
[[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

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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

Notes

Bottom Section