Arma 3
Fenris 89 Sep 27, 2017 @ 3:51am
Change day and time?
I found this:

//daytime = 1.66046
_hour = floor daytime;
_minute = floor ((daytime - _hour) * 60);
_second = floor (((((daytime) - (_hour))*60) - _minute)*60);
_time24 = text format ["%1:%2:%3",_hour,_minute,_second];
//_time24 = 1:39:37

i had save it as description.ext but it didnt work!

I want, when the player arrives an trigger that the day and time should change (not more than 24 hours)!

Can someone help?

< >
Showing 1-3 of 3 comments
Tajin Sep 27, 2017 @ 4:20am 
Originally posted by The End:
(not more than 24 hours)!

Sounds like skiptime is the right command for you.:
https://community.bistudio.com/wiki/skipTime
(note that this command has to be run on the server)
Last edited by Tajin; Sep 27, 2017 @ 4:21am
MATTXYO Sep 27, 2017 @ 7:26am 
Originally posted by Tajin:
Originally posted by The End:
(not more than 24 hours)!

Sounds like skiptime is the right command for you.:
https://community.bistudio.com/wiki/skipTime
(note that this command has to be run on the server)
^^This ^^

The dayTime command returns the current in game time, the script you have is a way to format the output.

I would follow Tajin's advice and use skipTime.

Note: skipping time (night to day or vice versa may create a performance hit).

Last edited by MATTXYO; Sep 27, 2017 @ 7:26am
Fenris 89 Sep 27, 2017 @ 7:41am 
Thanks, i found the skip time module and it works! The game was jump down to 30 fps, than very fast back to 60 fps!
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Sep 27, 2017 @ 3:51am
Posts: 3