BIS fnc onLoad: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Text replacement - "[[Arma 3: Event Handlers/addMissionEventHandler" to "[[Arma 3: Mission Event Handlers") |
||
Line 7: | Line 7: | ||
|descr= 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: Event Handlers | {{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}} | ||
Line 23: | Line 23: | ||
|x2= <code>0 [[call]] [[BIS_fnc_onLoad]]; {{cc|removes code with index 0}}</code> | |x2= <code>0 [[call]] [[BIS_fnc_onLoad]]; {{cc|removes code with index 0}}</code> | ||
|seealso= [[Arma 3: Event Handlers | |seealso= [[Arma 3: Mission Event Handlers|Mission Event Handlers]], [[addMissionEventHandler]] | ||
}} | }} | ||
[[Category:{{Name|arma3}}: Functions|{{uc:onLoad}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:onLoad}}]] |
Revision as of 10:36, 16 June 2021
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:
_codeIndex = { hint "Welcome back!"; } call BIS_fnc_onLoad;
- Example 2:
0 call BIS_fnc_onLoad; // removes code with index 0
Additional Information
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