Loading Screen Event Handler - CBATeam/CBA_A3 GitHub Wiki

requires CBA_A3 v3.6.0 or later

CBA adds the possibility to execute code once the initial loading screen of the mission is finished. If the briefing is enabled, this means the loading screen after the briefing was confirmed by the player.

This event handler will be executed only once for every player. It will be executed for players joining in progress. The didJIP command can be used to prevent intros from being played for players that joined in progress.

Example:

This code can be put into the missions init.sqf file:

["CBA_loadingScreenDone", {
    execVM "myIntro.sqf";
}] call CBA_fnc_addEventHandler;