武装突袭 Wiki
Advertisement
Introduced with Arma 3 version 0.50
  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 3
版本:
0.50

描述

描述:
Adds mission event handler. Every event will create an array named _this, which contains specific information about the particular event. Available mission event handlers:
"Loaded"
"EntityRespawned"
"EntityKilled"
"Ended" - Triggered when the mission is successfully ended. The variable _this, stores the type of the ending ("END1","END2", "LOSER", etc.).
"Draw3D" - It seems "Draw3D" mission EH is connected to your primary display. It will stop firing as soon as you Alt+Tab from the game and resume when you come back (unless Arma 3 client is launched with -window -nopause params). "Draw3D" does not fire at all on a dedicated server.
"HandleDisconnect" - Triggered when player disconnects from the game. Similar to onPlayerDisconnected event but can be stacked and contains the unit occupied by player before disconnect. Must be added on the server and triggers only on the server. For more info: HandleDisconnect

基本句法

句法:
addMissionEventHandler [type, command]
参数:
[type, command]: Array
type: String
command: Code or String - By default executed in missionNamespace
返回值:
Number - The index of the currently added mission event handler is returned.

范例

范例1:
// A script could be executed to stop custom scripts graciously, or save progress & stats, for example: _id = addMissionEventHandler ["Ended",{ _this execVM "missionEnded.sqf" }];

额外资讯

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

注意事项

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

Notes

Bottom Section

Advertisement