Arma 3 Scripting

onPreloadFinished

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · Markdown · JSON · original wiki page

Description

Defines an action performed after the preload screen finished. Preload event occurs after briefing screen on mission start.

Important

This event handler also fires on client after user closes the main map.

Note

Arma 3:

Syntax

onPreloadFinished command

Parameters:

Returns: Nothing

Examples

Example 1

onPreloadFinished {TAG_ReceivingScreenDone = true};

Example 2

// removes the event immediately after the first run again
onPreloadFinished { TAG_ReceivingScreenDone = true; onPreloadFinished "" };

See also

onPreloadStarted

Community notes

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