addMissionEventHandler: Difference between revisions
| Killzone Kid (talk | contribs) No edit summary | Killzone Kid (talk | contribs)   (Draw3D will not fire on dedi or when alt_tabbed) | ||
| Line 10: | Line 10: | ||
| <br/>"loaded" | <br/>"loaded" | ||
| <br/>"ended" | <br/>"ended" | ||
| <br/>"draw3D"  |= Description | <br/>"draw3D"    | ||
| '''NOTE:''' 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. For the same reason it does not fire at all on a dedicated server. |= Description | |||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 18:24, 26 January 2014
Description
- Description:
- 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"
 "ended"
 "draw3D" NOTE: 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. For the same reason it does not fire at all on a dedicated server.
- Groups:
- Uncategorised
Syntax
- Syntax:
- addMissionEventHandler [type, command]
- Parameters:
- [type, command]: Array
- type: String
- command: Code or String - By default executed in missionNamespace
- Return Value:
- Number - The index of the currently added mission event handler is returned.
Examples
- Example 1:
- _id = addMissionEventHandler ["ended",{_this exec "missionEnded.sqs"}];
Additional Information
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
- Posted on March 3, 2013 - 16:34
- Druid
- There is only one type at this time:
 ended - It is triggered when the mission is successfuly ended. In variable _this is stored type of the end ("end1","end2", etc.).
 
	