onPreloadFinished: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ") |
Lou Montana (talk | contribs) m (Text replacement - "<dt class="note">([^<>]+) " to "<dt class="note">$1</dt> ") |
||
Line 33: | Line 33: | ||
<dd class="notedate">Posted on July 24, 2009</dd> | <dd class="notedate">Posted on July 24, 2009</dd> | ||
<dt class="note">[[User:Tophe|Tophe]] | <dt class="note">[[User:Tophe|Tophe]]</dt> | ||
<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> | <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> |
Revision as of 01:28, 30 January 2021
Description
- Description:
- Description needed
- Groups:
- Event Handlers
Syntax
- Syntax:
- Syntax needed
- Parameters:
- command: String or Code
- Return Value:
- Return value needed
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:
- See also needed
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.