Lovono Posted May 20, 2016 Share Posted May 20, 2016 I have tried those functions below SET_CLOCK_TIME(int hour, int minute, int second)ADVANCE_CLOCK_TIME_TO(int hour, int minute, int second) I see that both functions do the same thing, and I see that in the decompiled scripts, only SET_CLOCK_TIME is used frequently. Does anyone know why RockStar have to make the function ADVANCE_CLOCK_TIME_TO? Does this function do anything else special - like this will make game run smoother or something? Link to comment Share on other sites More sharing options...
frodzet Posted May 20, 2016 Share Posted May 20, 2016 (edited) Here is my thought - this is just a guess. I think SET_CLOCK_TIME will only set the time, while if e.g. it's 02 pm and you deicde to ADVANCE_CLOCK_TIME_TO 01 PM this will add a day and set the time to 01 PM. So e.g. Thursday 02 PM with ADVANCE_CLOCK_TIME_TO 01 PM would make it Friday 01 PM While SET_CLOCK_TIME would make it Thursday 01 PM Edited May 20, 2016 by frodzet Link to comment Share on other sites More sharing options...
mockba.the.borg Posted May 20, 2016 Share Posted May 20, 2016 Hi there, I have just tested those two natives and they seems to have the same function. Both changed the time back and forth without modifying the day of the week, so I don't know what would be the difference, if any, of using one or another. Cheers, Mockba. Link to comment Share on other sites More sharing options...
jedijosh920 Posted May 20, 2016 Share Posted May 20, 2016 I would think that the latter function would advance the time in a time-lapse sort of way. frodzet 1 Link to comment Share on other sites More sharing options...
frodzet Posted May 20, 2016 Share Posted May 20, 2016 I would think that the latter function would advance the time in a time-lapse sort of way. Since my guess was not correct i think you are absolutely right. I am starting to get curious, if anyone solves this "mystery" please reply to this thread :-) Link to comment Share on other sites More sharing options...
mockba.the.borg Posted May 20, 2016 Share Posted May 20, 2016 Hi Jedi, Yes ... I thought that too... as we see when we are moving from offline to online, for example. But it didn't do it. Both calls switched the clock immediately. Cheers, Mockba. Link to comment Share on other sites More sharing options...
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