natoed Posted March 22, 2017 Report Share Posted March 22, 2017 Thanks He-Man that's now sorted Link to comment Share on other sites More sharing options...
Hux Posted March 22, 2017 Report Share Posted March 22, 2017 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 More sharing options...
natoed Posted March 23, 2017 Report Share Posted March 23, 2017 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 More sharing options...
He-Man Posted March 23, 2017 Report Share Posted March 23, 2017 I will give you a better Solution when im at home later. This was just a quick fix Link to comment Share on other sites More sharing options...
Hux Posted March 23, 2017 Report Share Posted March 23, 2017 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. natoed 1 Link to comment Share on other sites More sharing options...
He-Man Posted March 23, 2017 Report Share Posted March 23, 2017 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 !!! natoed 1 Link to comment Share on other sites More sharing options...
natoed Posted March 24, 2017 Report Share Posted March 24, 2017 awesome work He-Man, working every time now thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now