onPreloadFinished: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - ">Posted on July ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-07-$1") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
Line 29: | Line 29: | ||
|x1= <sqf>onPreloadFinished {TAG_ReceivingScreenDone = true};</sqf> | |x1= <sqf>onPreloadFinished {TAG_ReceivingScreenDone = true};</sqf> | ||
|x2= <sqf>// removes the event immediately after the first run again | |x2= <sqf> | ||
onPreloadFinished { TAG_ReceivingScreenDone = true; onPreloadFinished "" };</sqf> | // removes the event immediately after the first run again | ||
onPreloadFinished { TAG_ReceivingScreenDone = true; onPreloadFinished "" }; | |||
</sqf> | |||
|seealso= [[onPreloadStarted]] | |seealso= [[onPreloadStarted]] |
Revision as of 19:42, 3 September 2024
Description
- Description:
- Defines an action performed after the preload screen finished. Preload event occurs after briefing screen on mission start.
- Groups:
- Event Handlers
Syntax
- Syntax:
- onPreloadFinished command
- Parameters:
- command: String or Code
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
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 2009-07-24
- Tophe
- There is a bug in Arma 2 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 disappearedIt will however also run every time a player change graphics settings, alt-tab or do anything else that will trigger the loading screen.onPreloadFinished '[fire1] execVM "scripts\startcam.sqf"';
You will have to script around it with if statements to get it to run only in the beginning of the mission.