BIS fnc onEnd: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Register code to be executed after mission end. |= | | Register code to be executed after mission end. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| argument call [[BIS_fnc_onEnd]] |= | | argument call [[BIS_fnc_onEnd]] |SYNTAX= | ||
|p1= argument: | |p1= argument: | ||
Line 16: | Line 16: | ||
* [[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 | ||
|= | |PARAMETER1= | ||
| [[Number]] - index of onEnd code |= | | [[Number]] - index of onEnd code |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_onEndIndex = { [[player]] [[addRating]] 10000; } [[call]] [[BIS_fnc_onEnd]];</code> |= | |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> |= | |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]] |= | | [[Event Scripts]], [[Arma_3:_Event_Handlers/addMissionEventHandler#Ended|Ended Mission Event Handler]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:32, 7 April 2019
Description
- Description:
- Register code to be executed after mission end.
- Execution:
- call
- Groups:
- Uncategorised
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