Feche1320 Posted February 1, 2019 Share Posted February 1, 2019 I can only set once setTime clientside, if I want to change it again it doesn't have effect and the time stays the same Is this a known bug? thanks Link to comment
Moderators IIYAMA Posted February 1, 2019 Moderators Share Posted February 1, 2019 Not that I know of. Just make sure that you test it in an empty environment without gamemodes running. Link to comment
Peti Posted February 2, 2019 Share Posted February 2, 2019 (edited) We are going to need your code to give a proper answer Edited February 2, 2019 by Peti Link to comment
Feche1320 Posted February 3, 2019 Author Share Posted February 3, 2019 (edited) I have been making some tests since I still have this issue, added an IF statement to check if time was set or not since the Wiki says that it returns true if set succesfully, false otherwise: Quote Returns true if the new time was successfully set, false otherwise. This is my current code with the IF statement: if setTime(22, 0) then setMinuteDuration(600000) -- 10 minutes = 1 ingame minute outputDebugString("[RACE] Time set") else outputDebugString("[RACE] Could not set game time") end And this is what I got: What could be the reason of setTime() returning false? Thanks EDIT: Okay so nevermind, I'm stupid.. I had this hidden somewhere _setTime = setTime function setTime() end Can be closed, thanks for your help! Edited February 3, 2019 by Feche1320 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