onPreloadFinished: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
No edit summary
Line 34: Line 34:
<dl class='command_description'>
<dl class='command_description'>
<!-- 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>
If this code is put in the Init.sqf it will run the startcam.sqf script when the loading screen has disappeared <br>
'''onPreloadFinished "[fire1] exec ""scripts\startcam.sqf"""'''
<br>
<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>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 08:08, 24 July 2009

Hover & click on the images for description

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:
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

Notes

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] exec ""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.

Bottom Section