Page MenuHomeFeedback Tracker

Command playScriptedMission doesn't work
New, WishlistPublic

Description

The command playScriptedMission does not work.

Maybe the Biki doesn't describe correctly/fully the command :
https://community.bistudio.com/wiki/playScriptedMission

The command is useful to switch the mission's world (e.g. VR to real map) with a unique mission PBO.

Details

Legacy ID
2635151744
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Try to execute code like these ones in the BIS' debug console :

0 spawn
{
sleep 2;
playScriptedMission
[

		"Altis",
		{
			while {time < 10} do {hint str time; sleep 0.5;};
		},
		missionConfigFile

];
};

OR

0 spawn
{
sleep 2;
playScriptedMission
[

		"Altis",
		{
			while {time < 10} do {hint str time; sleep 0.5;};
		},
		configfile >> "CfgMissions" >> "Cutscenes" >> "Credits"

];
};

OR

0 spawn
{
sleep 2;
playScriptedMission
[

		"Altis",
		{},
		configfile >> "CfgMissions" >> "Cutscenes" >> "Credits"

];
};

Event Timeline

madbull edited Steps To Reproduce. (Show Details)Oct 1 2014, 5:34 PM
madbull edited Additional Information. (Show Details)
madbull set Category to Scripting.
madbull set Reproducibility to Always.
madbull set Severity to None.
madbull set Resolution to Open.
madbull set Legacy ID to 2635151744.May 7 2016, 7:32 PM

Find only one occurence of this command in the whole Arma 3 addons :
In Addons\ui_f\a3\ui_f\scripts\startCredits.sqf (in Arma 3\Addons\ui_f.pbo)

Limnos island ? Seems old stuff.
Did not success to use/modify the script.

disableSerialization;

private ["_idd", "_display"];
_idd = getNumber(configFile >> "RscDisplayOptions" >> "idd");
_display = findDisplay _idd;
_display closeDisplay 2;

  • spawn

{
sleep 0.005;
playScriptedMission ["limnos", {private ["_handle"]; _handle = execVM "\A3\missions_f\data\scenes\credits1\init.sqf"}, configFile >> "CfgMissions" >> "Cutscenes" >> "Credits"];
};

On the VBS wiki, the command has a 4th argument :
https://resources.bisimulations.com/w/index.php?title=playScriptedMission

This argument is accepted by the Arma engine as an optional value. But still not working if set to true.

I actually found a way to make this command work. Following code works, but player needs to click on Continue in debriefing which is shown...

playScriptedMission ['Stratis',{
createCenter west;
_grp = createGroup west;
_player = _grp createUnit ["B_Soldier_F",[0,0,0],[],0,"NONE"];
selectPlayer _player;
},missionConfigFile,true];

(findDisplay 26) closeDisplay 1;
failMission "END1";