BIS fnc onLoad: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]+)<\/code>" to "<sqf>$1</sqf>") |
||
(19 intermediate revisions by 2 users not shown) | |||
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 a mission load (from a save, for example). | |descr= Register code to be executed after a mission load (from a save, for example). | ||
{{ | {{Feature|important|Replaced by [[Arma 3: Mission Event Handlers#Loaded|"loaded" mission event handler]].<br> | ||
This function now exists only because of backward compatibility}} | This function now exists only because of backward compatibility}} | ||
| parameter call [[BIS_fnc_onLoad]] | |s1= parameter call [[BIS_fnc_onLoad]] | ||
|p1= parameter: [[Code]] or [[Number]]: | |p1= parameter: [[Code]] or [[Number]]: | ||
Line 18: | Line 20: | ||
| | ||
| [[Number]] - index of onLoad code | |r1= [[Number]] - index of onLoad code | ||
|x1= < | |x1= <sqf>private _codeIndex = { hint "Welcome back!"; } call BIS_fnc_onLoad;</sqf> | ||
|x2= < | |x2= <sqf>0 call BIS_fnc_onLoad; // removes code with index 0</sqf> | ||
| [[Arma 3: Event Handlers | |seealso= [[Arma 3: Mission Event Handlers|Mission Event Handlers]] [[addMissionEventHandler]] | ||
}} | }} | ||
Latest revision as of 17:11, 13 July 2022
Description
- Description:
- Register code to be executed after a mission load (from a save, for example).
- Execution:
- call
- Groups:
- Event Handlers
Syntax
- Syntax:
- parameter call BIS_fnc_onLoad
- Parameters:
- parameter: Code or Number:
- Return Value:
- Number - index of onLoad code
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- Mission Event Handlers addMissionEventHandler
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