onPreloadFinished: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "(\| * )+\}\}" to "}}") |
Lou Montana (talk | contribs) m (Text replacement - " {3,}\|" to " |") |
||
Line 11: | Line 11: | ||
{{Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#PreloadFinished|PreloadFinished]]}}<br> | {{Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#PreloadFinished|PreloadFinished]]}}<br> | ||
{{Feature|arma3|In order to keep compatibility between official and community content the functions [[BIS_fnc_addStackedEventHandler]] and [[BIS_fnc_removeStackedEventHandler]] should be used instead.}} | {{Feature|arma3|In order to keep compatibility between official and community content the functions [[BIS_fnc_addStackedEventHandler]] and [[BIS_fnc_removeStackedEventHandler]] should be used instead.}} | ||
| '''onPreloadFinished''' command | | '''onPreloadFinished''' command | ||
Line 22: | Line 21: | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[onPreloadFinished]] {TAG_ReceivingScreenDone = [[true]]};</code> | |x1= <code>[[onPreloadFinished]] {TAG_ReceivingScreenDone = [[true]]};</code> | ||
|x2= <code>//removes the event immediately after the first run again | |x2= <code>//removes the event immediately after the first run again | ||
[[onPreloadFinished]] {TAG_ReceivingScreenDone = [[true]]; [[onPreloadFinished]] ""};</code> | [[onPreloadFinished]] {TAG_ReceivingScreenDone = [[true]]; [[onPreloadFinished]] ""};</code> | ||
| [[onPreloadStarted]] | | [[onPreloadStarted]] |
Revision as of 17:40, 18 January 2021
Description
- Description:
- Defines an action performed after the preload screen finished. Preload event occurs after briefing screen on mission start.
- Groups:
- Event Handlers
Syntax
Examples
- Example 1:
onPreloadFinished {TAG_ReceivingScreenDone = true};
- Example 2:
//removes the event immediately after the first run again onPreloadFinished {TAG_ReceivingScreenDone = true; onPreloadFinished ""};
Additional Information
- See also:
- onPreloadStarted
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
- Posted on July 24, 2009
- Tophe
- There is a bug in Arma2 that will make this command execute every time the screen with "Receiving..." has been displayed.
If this code is put in the Init.sqf it will run the startcam.sqf script when the loading screen has disappeared
onPreloadFinished '[fire1] execVM "scripts\startcam.sqf"';
It will however also run every time a player change graphics settings, alt-tab or do anything else that will trigger the loading screen.
You will have to script around it with if statements to get it to run only in the beginning of the mission.