BIS fnc onLoad: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\{\{cc\|([^{}]+)\}\} *<\/code>" to "<code>$1// $2</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
||
Line 24: | Line 24: | ||
|x1= <code>private _codeIndex = { hint "Welcome back!"; } call BIS_fnc_onLoad;</code> | |x1= <code>private _codeIndex = { hint "Welcome back!"; } call BIS_fnc_onLoad;</code> | ||
|x2= < | |x2= <sqf>0 call BIS_fnc_onLoad; // removes code with index 0</sqf> | ||
|seealso= [[Arma 3: Mission Event Handlers|Mission Event Handlers]] [[addMissionEventHandler]] | |seealso= [[Arma 3: Mission Event Handlers|Mission Event Handlers]] [[addMissionEventHandler]] | ||
}} | }} |
Revision as of 22:44, 12 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:
private _codeIndex = { hint "Welcome back!"; } call BIS_fnc_onLoad;
- 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