onPreloadFinished: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
m (Fixed comment) |
||
Line 35: | Line 35: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
There is a bug in Arma2 that will make this command execute every time the screen with "Receiving..." has been displayed. <br> | <dd class="notedate">Posted on July 24, 2009 | ||
<dt class="note">'''[[User:Tophe|Tophe]]''' | |||
<dd class="note">There is a bug in Arma2 that will make this command execute every time the screen with "Receiving..." has been displayed. <br> | |||
If this code is put in the Init.sqf it will run the startcam.sqf script when the loading screen has disappeared <br> | If this code is put in the Init.sqf it will run the startcam.sqf script when the loading screen has disappeared <br> | ||
' | <pre>onPreloadFinished '[fire1] execVM "scripts\startcam.sqf"';</pre> | ||
< | |||
It will however also run every time a player change graphics settings, alt-tab or do anything else that will trigger the loading screen.<br> | It will however also run every time a player change graphics settings, alt-tab or do anything else that will trigger the loading screen.<br> | ||
You will have to script around it with if statements to get it to run only in the beginning of the mission.<br> | You will have to script around it with if statements to get it to run only in the beginning of the mission.<br> | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 21:35, 8 November 2011
Description
- Description:
- Defines an action performed after the preload screen finished.
- Groups:
- Uncategorised
Syntax
- Syntax:
- onPreloadFinished command
- Parameters:
- command: -
- Return Value:
- Nothing
Examples
- Example 1:
(example)
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
Notes
- 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.