BIS fnc onEnd: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN -->  <!-- Note Section END --> </dl> " to "")  | 
				Lou Montana (talk | contribs)  m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)  | 
				||
| Line 1: | Line 1: | ||
{{Function  | {{Function  | ||
| tkoh   | | tkoh  | ||
|1.00  | |1.00  | ||
|gr1 = Event Handlers   | |gr1 = Event Handlers  | ||
| Register code to be executed after mission end.   | | Register code to be executed after mission end.  | ||
| argument call [[BIS_fnc_onEnd]]   | | argument call [[BIS_fnc_onEnd]]  | ||
|p1= argument:  | |p1= argument:  | ||
| Line 15: | Line 15: | ||
* [[Array]] - code with arguments in format [code, arguments]  | * [[Array]] - code with arguments in format [code, arguments]  | ||
* [[Number]] - remove code at given index  | * [[Number]] - remove code at given index  | ||
   |    | ||
| [[Number]] - index of onEnd code   | | [[Number]] - index of onEnd code  | ||
|x1= <code>_onEndIndex = { [[player]] [[addRating]] 10000; } [[call]] [[BIS_fnc_onEnd]];</code>   | |x1= <code>_onEndIndex = { [[player]] [[addRating]] 10000; } [[call]] [[BIS_fnc_onEnd]];</code>  | ||
|x2= <code>_onEndIndex = [{ { [[_x]] [[addRating]] 10000; } [[forEach]] [[_this]]; }, [[units]] [[group]] [[player]]] [[call]] [[BIS_fnc_onEnd]];</code>   | |x2= <code>_onEndIndex = [{ { [[_x]] [[addRating]] 10000; } [[forEach]] [[_this]]; }, [[units]] [[group]] [[player]]] [[call]] [[BIS_fnc_onEnd]];</code>  | ||
| [[Event Scripts]], [[Arma_3:_Event_Handlers/addMissionEventHandler#Ended|Ended Mission Event Handler]]   | | [[Event Scripts]], [[Arma_3:_Event_Handlers/addMissionEventHandler#Ended|Ended Mission Event Handler]]  | ||
}}  | }}  | ||
Revision as of 23:37, 17 January 2021
Description
- Description:
 - Register code to be executed after mission end.
 - Execution:
 - call
 - Groups:
 - Event Handlers
 
Syntax
- Syntax:
 - argument call BIS_fnc_onEnd
 - Parameters:
 - argument:
 - Return Value:
 - Number - index of onEnd code
 
Examples
- Example 1:
 _onEndIndex = { player addRating 10000; } call BIS_fnc_onEnd;- Example 2:
 _onEndIndex = [{ { _x addRating 10000; } forEach _this; }, units group player] call BIS_fnc_onEnd;
Additional Information
- See also:
 - Event ScriptsEnded Mission Event Handler
 
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