BIS fnc onEnd: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{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. | ||
{{Feature|arma3| | |||
Replaced by [[Arma 3: Mission Event Handlers#Ended|"Ended" mission event handler]].<br> | |||
This function now exists only because of backward compatibility. | |||
}} | |||
| argument call [[BIS_fnc_onEnd]] | |s1= argument call [[BIS_fnc_onEnd]] | ||
|p1= argument: | |p1= argument: [[Code]], [[Array]] or [[Number]]: | ||
* [[Code]] - code to be executed | * [[Code]] - code to be executed | ||
* [[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= < | |x1= <sqf>private _onEndIndex = { player addRating 10000; } call BIS_fnc_onEnd;</sqf> | ||
|x2= < | |x2= <sqf>private _onEndIndex = [{ { _x addRating 10000; } forEach _this; }, units group player] call BIS_fnc_onEnd;</sqf> | ||
| [[Event Scripts]] | |seealso= [[Event Scripts]] [[Arma 3: Mission Event Handlers#Ended|Ended Mission Event Handler]] | ||
}} | }} | ||
Latest revision as of 14:27, 3 August 2022
Description
- Description:
- Register code to be executed after mission end.
- Execution:
- call
- Groups:
- Event Handlers
Syntax
- Syntax:
- argument call BIS_fnc_onEnd
- Parameters:
- argument: Code, Array or Number:
- Return Value:
- Number - index of onEnd code
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- Event Scripts Ended 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