Tekken Posted September 19, 2014 Share Posted September 19, 2014 How to lock time on a server to be 12:00 all time? Link to comment
Castillo Posted September 19, 2014 Share Posted September 19, 2014 Either: setMinuteDuration or this: setTimer + setTime Link to comment
Tekken Posted September 20, 2014 Author Share Posted September 20, 2014 Like this : function setMinuteDuration setTime( 1000, 1,) end Link to comment
Tails Posted September 20, 2014 Share Posted September 20, 2014 Like this: setTimer(function()setTime(12,0)end,50,0) Link to comment
Callum Posted September 20, 2014 Share Posted September 20, 2014 The method of using setMinuteDuration and setTime is a lot more recommended than using an extremely frequent timer. Link to comment
Tekken Posted September 21, 2014 Author Share Posted September 21, 2014 It did not work But I have another problem with animation when you eat or do something nature never stops, but I know how to fix it but do not know how to open files .lua_dayz Link to comment
Tails Posted September 21, 2014 Share Posted September 21, 2014 Open them with notepad Link to comment
Tekken Posted September 21, 2014 Author Share Posted September 21, 2014 It did not work look: https://lh3.googleusercontent.com/-oKx4 ... titled.png Link to comment
joaosilva099 Posted September 21, 2014 Share Posted September 21, 2014 The file is compiled lol Link to comment
Tekken Posted September 22, 2014 Author Share Posted September 22, 2014 how to uncompile it? and script time went but stopped just watch but I want to stop time that is not to do night Link to comment
Anubhav Posted September 22, 2014 Share Posted September 22, 2014 You can't uncompile it. Its 'de-compile' which is not possible. Try to add the part in a new file something.lua and compile it copy the data inside it paste it at last of script. Maybe it works? Link to comment
Tekken Posted September 22, 2014 Author Share Posted September 22, 2014 I don't understaind Link to comment
The Don Posted September 22, 2014 Share Posted September 22, 2014 -- Client Side # gMe = getLocalPlayer() function AllTIme () setTimer (Timer, 2000, 0) setTime (12, 00) end function Timer() setTime (12, 00) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), AllTIme ) Link to comment
Tekken Posted September 22, 2014 Author Share Posted September 22, 2014 (edited) Actually my problem is that when night comes alive real server becomes black: How it should be: https://lh4.googleusercontent.com/--6yK ... _00002.jpg How it is: https://lh6.googleusercontent.com/-YKoH ... _00004.jpg What should I do? Edited June 22, 2015 by Guest Link to comment
crismar Posted September 22, 2014 Share Posted September 22, 2014 If you don't know scripting just drop the task of creating a server. Take your time and browse through the DayZ config files. Link to comment
Callum Posted September 24, 2014 Share Posted September 24, 2014 If you don't know scripting just drop the task of creating a server.Take your time and browse through the DayZ config files. Nobody starts off knowing how to script, it's a process of learning through failure. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now