武装突袭 Wiki
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.00

描述

描述:
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.

基本句法

句法:
playScriptedMission [world,expression,config,ignoreChildWindow]
参数:
[world,expression,config,ignoreChildWindow]: Array -
world: String
expression: Code
config (Optional): Config
ignoreChildWindow (Optional): Boolean
返回值:
Nothing

范例

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

额外资讯

多人游戏:
-
也可以看看:
hostMissionplayMission

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Bottom Section

Posted on December 31, 2015 - 17:55 (UTC)
SkaceKachna
For this command to work, you will need to
  1. call command with ignoreChildWindow param set to true (in VBS docs its called fromMission)
  2. close any opened display (not sure about this part, but closing every display (but #0) seems to work):
    If mission is run from 2D editor, you can just close RscDisplayArcadeMap display (idd 26) (because this was done from 2D editor, so RscDisplayArcadeMap is still active in background -- benargee)
  3. If mission is run from single mission browser, you can just close RscDisplaySingleMission (idd 2)
  4. end mission

Debriefing will show and player will be moved to new mission after clicking on Continue.

Command is a bit bugged:

  • Third (config) param doesn't seem to work
  • If you run this command in mission loaded from pbo, said pbo won't be writable until you close the game (you can't update it)

Following code will change change island to Stratis and spawns player as basic soldier at [0,0,0] coordinates. disableSerialization; playScriptedMission ['Stratis',{ createCenter west; _grp = createGroup west; _player = _grp createUnit ["B_Soldier_F",[0,0,0],[],0,"NONE"]; selectPlayer _player; },missionConfigFile, true]; //Close all displays that could be the background display ... this is essentialy forceEnd command //Closing #0 will cause game to fail _zero = findDisplay(0); { if (_x != _zero) then { _x closeDisplay 1; }; } foreach allDisplays; failMission "END1"; (tested in Arma 3 1.54.133741)

Advertisement