BIS_fnc_onEnd

From Bohemia Interactive Community
Revision as of 13:06, 6 May 2022 by Lou Montana (talk | contribs) (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ")
Jump to navigation Jump to search
Hover & click on the images for description

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 - code to be executed
  • Array - code with arguments in format [code, arguments]
  • Number - remove code at given index
Return Value:
Number - index of onEnd code

Examples

Example 1:
private _onEndIndex = { player addRating 10000; } call BIS_fnc_onEnd;
Example 2:
private _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