BIS fnc onEnd: Difference between revisions
mNo edit summary  | 
				Lou Montana (talk | contribs)  m (Text replacement - "_{10,} " to "")  | 
				||
| Line 1: | Line 1: | ||
{{Function|Comments=  | {{Function|Comments=  | ||
| tkoh |Game name=  | | tkoh |Game name=  | ||
| Line 7: | Line 6: | ||
|gr1 = Event Handlers |GROUP1=  | |gr1 = Event Handlers |GROUP1=  | ||
| Register code to be executed after mission end. |DESCRIPTION=  | | Register code to be executed after mission end. |DESCRIPTION=  | ||
| argument call [[BIS_fnc_onEnd]] |SYNTAX=  | | argument call [[BIS_fnc_onEnd]] |SYNTAX=  | ||
| Line 21: | Line 18: | ||
| [[Number]] - index of onEnd code |RETURNVALUE=  | | [[Number]] - index of onEnd code |RETURNVALUE=  | ||
|x1= <code>_onEndIndex = { [[player]] [[addRating]] 10000; } [[call]] [[BIS_fnc_onEnd]];</code> |EXAMPLE1=  | |x1= <code>_onEndIndex = { [[player]] [[addRating]] 10000; } [[call]] [[BIS_fnc_onEnd]];</code> |EXAMPLE1=  | ||
|x2= <code>_onEndIndex = [{ { [[_x]] [[addRating]] 10000; } [[forEach]] [[_this]]; }, [[units]] [[group]] [[player]]] [[call]] [[BIS_fnc_onEnd]];</code> |EXAMPLE2=  | |x2= <code>_onEndIndex = [{ { [[_x]] [[addRating]] 10000; } [[forEach]] [[_this]]; }, [[units]] [[group]] [[player]]] [[call]] [[BIS_fnc_onEnd]];</code> |EXAMPLE2=  | ||
| [[Event Scripts]], [[Arma_3:_Event_Handlers/addMissionEventHandler#Ended|Ended Mission Event Handler]] |SEEALSO=  | | [[Event Scripts]], [[Arma_3:_Event_Handlers/addMissionEventHandler#Ended|Ended Mission Event Handler]] |SEEALSO=  | ||
Revision as of 23:54, 16 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