From eb6f8f9fae38554fa0fa28afecbd3e1a8132da10 Mon Sep 17 00:00:00 2001 From: Spoffy Date: Sat, 10 Aug 2019 00:06:09 +0100 Subject: [PATCH] Fixes a runtime during initPlayerLocal.sqf --- A3-Antistasi/initPlayerLocal.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/A3-Antistasi/initPlayerLocal.sqf b/A3-Antistasi/initPlayerLocal.sqf index 7db2e44197..16747cdc80 100755 --- a/A3-Antistasi/initPlayerLocal.sqf +++ b/A3-Antistasi/initPlayerLocal.sqf @@ -84,8 +84,7 @@ _positionX = if (side player == side (group petros)) then {position petros} else { _x set [3, 0.33] } forEach [_colourTeamPlayer, _colorInvaders]; -_introShot = [] spawn { - [ +_introShot = [ _positionX, // Target position format ["%1",worldName], // SITREP text 50, // altitude @@ -97,6 +96,9 @@ _introShot = [] spawn { ["\a3\ui_f\data\map\markers\nato\o_inf.paa", _colorInvaders, markerPos "towerBaseMrk", 1, 1, 0, "Radio Towers", 0] ] ] spawn BIS_fnc_establishingShot; + +//Trigger credits loading. +[] spawn { waitUntil {!isNil "BIS_fnc_establishingShot_playing" && {BIS_fnc_establishingShot_playing}}; private _credits = [] execVM "credits.sqf"; };