BIS fnc onEnd: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
|gr1= Event Handlers | |gr1= Event Handlers | ||
| Register code to be executed after mission end. | |descr= Register code to be executed after mission end. | ||
| argument call [[BIS_fnc_onEnd]] | |s1= argument call [[BIS_fnc_onEnd]] | ||
|p1= argument: | |p1= argument: | ||
Line 15: | Line 17: | ||
* [[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 | |r1= [[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> | ||
Line 23: | Line 24: | ||
|x2= <code>_onEndIndex = [{ { [[Magic Variables#x|_x]] [[addRating]] 10000; } [[forEach]] [[Magic Variables#this|_this]]; }, [[units]] [[group]] [[player]]] [[call]] [[BIS_fnc_onEnd]];</code> | |x2= <code>_onEndIndex = [{ { [[Magic Variables#x|_x]] [[addRating]] 10000; } [[forEach]] [[Magic Variables#this|_this]]; }, [[units]] [[group]] [[player]]] [[call]] [[BIS_fnc_onEnd]];</code> | ||
| [[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]] | ||
}} | }} | ||
Revision as of 22:45, 9 June 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