BIS fnc onEnd: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "[[Arma_3:_Event_Handlers/addMissionEventHandler" to "[[Arma 3: Mission Event Handlers")  | 
				Lou Montana (talk | contribs)  m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ")  | 
				||
| Line 20: | Line 20: | ||
|r1= [[Number]] - index of onEnd code  | |r1= [[Number]] - index of onEnd code  | ||
|x1= <code>_onEndIndex = { [[player]] [[addRating]] 10000; } [[call]] [[BIS_fnc_onEnd]];</code>  | |x1= <code>[[private]] _onEndIndex = { [[player]] [[addRating]] 10000; } [[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>  | |x2= <code>[[private]] _onEndIndex = [{ { [[Magic Variables#x|_x]] [[addRating]] 10000; } [[forEach]] [[Magic Variables#this|_this]]; }, [[units]] [[group]] [[player]]] [[call]] [[BIS_fnc_onEnd]];</code>  | ||
|seealso= [[Event Scripts]], [[Arma 3: Mission Event Handlers#Ended|Ended Mission Event Handler]]  | |seealso= [[Event Scripts]], [[Arma 3: Mission Event Handlers#Ended|Ended Mission Event Handler]]  | ||
}}  | }}  | ||
Revision as of 12:06, 6 May 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:
 - 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