playScriptedMission: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added SEEALSO)
Line 56: Line 56:
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 11:22, 2 November 2011

Hover & click on the images for description

Description

Description:
Load the given world,launch an empty mission and execute the given,expression. Config (optional) can reference to the config entry,replacing description.ext for this mission.
Groups:
Uncategorised

Syntax

Syntax:
playScriptedMission [world,expression,config]
Parameters:
[world,expression,config]: Array -
Return Value:
Nothing

Examples

Example 1:
playScriptedMission
[
	"desert_e",
	{
		private["_handle"];
		_handle = execVM "\ca\missions_e\data\scenes\credits1\init.sqf";
	},
	configFile/"CfgMissions"/"Cutscenes"/"Credits"
];

Additional Information

See also:
hostMission

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

playScriptedMission ["Chernarus",{},missionConfigFile]; Does not work.

Bottom Section