Jump to content

[Release] Briefing for Arma3 Epoch


Suppe

Recommended Posts

7 hours ago, natoed said:

Thanks He-Man that's now sorted

I've had the same problem.

How did you use uisleep in the script?

Also, is there an advantage running the script from initPlayerLocal.sqf ?

May I see your setup?

 

Thank you.

Link to comment
Share on other sites

Hey Hux

All the info this 3 post back

added uisleep 30; see below

if (!hasInterface) exitWith {};

waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
uisleep 30;

player createDiarySubject ["menu0", "Status Bar"];

Still have to relog at times for it show, but its reliable, not prefect but it will have to do.

As for running this from the initPlayerLocal.sqf  via trial and error, I've found some scripts work more readily then via the init.sqf

Link to comment
Share on other sites

2 hours ago, natoed said:

Hey Hux

All the info this 3 post back

added uisleep 30; see below


if (!hasInterface) exitWith {};

waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
uisleep 30;

player createDiarySubject ["menu0", "Status Bar"];

Still have to relog at times for it show, but its reliable, not prefect but it will have to do.

As for running this from the initPlayerLocal.sqf  via trial and error, I've found some scripts work more readily then via the init.sqf

Thanks natoed.

I tried the uisleep  command and the brief wasn't showing at all so I then tried sleep 30 and started the script from the initPlayerLocal.sqf

Now it's showing every time...go figure...

 

Thanks for the help.

Link to comment
Share on other sites

Okay, here the for my opinion better solution:

Init.sqf:

Spoiler

if (hasinterface) then {
    [] spawn {
        // Put here all Client Codes, that can run before Player is full loaded in
        // [] execVM "MyOwnPlayerInit.sqf";
        
        // Wait until Player is full loaded ingame
        waituntil {!isNull player};
        waituntil {time > 25};
        waituntil {isPlayer player};
        waituntil {alive player};
        waituntil {getPlayerUID player != ''};
        waitUntil {!isNull (findDisplay 46)};
        waituntil {typeof player in ["Epoch_Male_F","Epoch_Female_F"]};
        waituntil {!isNil "Epoch_my_GroupUID"};
        uisleep 2;
        // Put here all Client Codes, that have to run after player is full ingame
        [] execVM "briefing.sqf";
    };
};

And remove ALL waituntil from your briefing.sqf !!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...