| 06-13-2003, 11:04 AM | #1 |
How do you find out ever it is day or night , also how do you change the lenght of the day and nigth Darkldevil :D |
| 06-13-2003, 03:37 PM | #2 |
There are functions for both getting and setting the time. You can use those to find out if it is day or night. There are also functions to change the speed the ingame time has. |
| 06-13-2003, 03:46 PM | #3 |
Blizzards script-library blizzard.j contains functions which need to know the time of the day. They give: Code:
local real ToD = GetTimeOfDay()
if (ToD >= bj_TOD_DAWN and ToD < bj_TOD_DUSK) then
//It's day!
endif
if (ToD < bj_TOD_DAWN or ToD >= bj_TOD_DUSK) then
//It's night!
endifYou can if you want stick the both together with an 'else' clause. |
| 06-14-2003, 10:05 AM | #4 |
Cheers , for the code , do you fancy help with the my mod |
