McSpeed 1 Posted February 18, 2012 ok well i been reading and looking for answers but i just cant get it. so hopefully someone can help me out here. i try to get my mission to accept the time of day i set in the lobby prior to mission start. my description ext reads as follows respawn = "BASE"; respawndelay = 4; disabledAI = 0; class Params { class DayTime { //paramsArray[2] title = "Time Of Day"; values[] = {0,16,8}; texts[] = {"Dusk","Midday","Dawn"}; default = 16; }; }; #include "mission_settings\dialog\common.hpp" #include "mission_settings\dialog\mission_settings.hpp" #include "R3F_revive\dlg_attente_reanimation.hpp" #include "=BTC=_Logistic\=BTC=_Lift\=BTC=_Hud.h" According to this i should get the options to set Dusk , Midday or Dawn in the lobby and that is the case. However, when the mission starts the time is always as set in the editor. any thoughts here? what am i missing? Share this post Link to post Share on other sites
kylania 568 Posted February 18, 2012 Do you have the second part of it in the init.sqf that actually changes the time based on that? The params array just sets a value, it's up to you use it. :) Share this post Link to post Share on other sites
weirdo10o4 10 Posted February 18, 2012 I believe this might be of service to you: Armaholic Specifically "Once defined you then could read it from the init.sqf file like this: skiptime (paramsArray select 2); " Share this post Link to post Share on other sites
McSpeed 1 Posted February 18, 2012 (edited) hmm, i figured it might be an init issue. here is what i have in mine: [] execVM "player_respawn.sqf"; // Execute the mission settings script [] execVM "mission_settings\init.sqf"; execVM "R3F_revive\revive_init.sqf"; _logistic = execVM "=BTC=_Logistic\=BTC=_Logistic_Init.sqf"; skiptime (paramsArray select 2); i saw the same thing on ofpec. but when it comes to code it takes me a while to make sense of maybe 50% of whats in there :) as things stand the mission always starts at 10.30 am (as set in the editor)... Edited February 18, 2012 by McSpeed Share this post Link to post Share on other sites
kylania 568 Posted February 18, 2012 Since you only have one class in your paramsArray you'll reference paramsArray select 0 in your init.sqf Share this post Link to post Share on other sites
McSpeed 1 Posted February 18, 2012 THAT did it. you , sir , cured a headache i had for nearly a week now:) thank you very much! Share this post Link to post Share on other sites
sxp2high 23 Posted February 18, 2012 Better use setDate on the server only instead. Otherwise JIPs will have a different time than the players who were present at mission start. For example: if (isServer) then { setDate [2012, 2, 18, (paramsArray select 0), 1]; }; Share this post Link to post Share on other sites
McSpeed 1 Posted February 18, 2012 nice one, i did notice last night we had some issues with night time on some clients even though it was day :) thank you muchly indeed :D Share this post Link to post Share on other sites