Search the Community
Showing results for tags 'daytime'.
Found 2 results
-
i have this script //init of the pad [h2,4,hlight1] execVM "Lightstime.sqf"; if (!isServer) exitWith {}; while {true} do { _var = _this select 2; if (daytime >= 17.5 || daytime < 6.5) then { if (isNil "_var") then { _var = []; _target_pos = getPos (_this select 0); _point = _this select 0; _light1 = "#lightpoint" createVehicle position _point; _light2 = "Land_runway_edgelight" createVehicle position _point; _light1 setLightBrightness 0.4; _light1 setLightAmbient[0.99, 0.99, 0.74]; _light1 setLightColor[0.0, 0.0, 0.0]; _light1 lightAttachObject [_point, [0,0,0]]; _var set [(count _var), "_light1,_light2"]; if(true) exitWith{}; }; } else{ if ( !(isNil "_var") ) then { { hint "light out"; deleteVehicle _x; }forEach _var; _var = nil; }; }; uiSleep 30; }; the code working for the spawn part (daytime from/to) edit: (when the time comes the lights is spawned.) but my problem is that i cant delete the lights . edit: (when the time pass , the lights is not deleted) i have made many tests with many code changes , but i have no luck yet. i think that the variable i want to set is not working . (hlight1 in this example) how can i check it? i want this script because i want to use it on many pads with unique variable on each one because i want to delete the lights on each pad on demand from another script (without the daytime command) thanks
-
Hi, I got some dramatic trouble with daytime. When jip, all PCs (hosted server + clients) are thrown to JIP daytime (reset at mission start) instead of the contrary. Environment: MP mission hosted, time multiplier as parameter in description.ext (class params), daytime also as parameter in description.ext. Mission starts at morning, no problem, all players sync for daytime. time multiplier for 4 hrs == 1 day. one player quit the game (at night time), then come back soon (JIP) All players (server hosted incl.) are now at morning daytime like when mission starts! I figured out JIP was sync to server in a couple of seconds, not the contrary! Why is it server and all players who are sync to JIP??? Sorry for my English.
-
- multiplayer
- server
-
(and 3 more)
Tagged with: