| Blockland Forums > Suggestions & Requests |
| onDay and onNight events |
| (1/5) > >> |
| Electrk:
Before you post actually read the whole OP I was thinking of a way to do onDay and onNight events In the .daycycle file, you could put a comment function word where the day starts and where the night starts, which the onDay and onNight events would read Example: --- Code: --- DAY FRACTION 0 DIRECTCOLOR 1.000000 1.00000 1.00000 1.000000 AMBIENTCOLOR 1.000000 1.00000 1.00000 1.000000 SKYCOLOR 1.000000 1.00000 1.00000 1.000000 FOGCOLOR 1.000000 1.00000 1.00000 1.000000 SHADOWCOLOR 0.500000 0.50000 0.50000 1.000000 SUNFLARECOLOR 1.000000 1.00000 1.00000 1.000000 NIGHT FRACTION 0.5 DIRECTCOLOR 0.000000 0.00000 0.00000 1.000000 AMBIENTCOLOR 0.000000 0.00000 0.00000 1.000000 SKYCOLOR 0.000000 0.00000 0.00000 1.000000 FOGCOLOR 0.000000 0.00000 0.00000 1.000000 SHADOWCOLOR 0.000000 0.00000 0.00000 1.000000 SUNFLARECOLOR 0.400000 0.40000 0.40000 1.000000 --- End code --- DAY tells the mod that it has become day, NIGHT tells the mod that it has become night What do you think? Is this possible/a good way of doing it? |
| Mold:
There are 0 function callbacks in the day/night cycle system that we can modify and package Impossibru |
| Electrk:
--- Quote from: Mold on August 10, 2012, 03:46:18 PM ---There are 0 function callbacks in the day/night cycle system that we can modify and package Impossibru --- End quote --- Damn |
| Alteration:
Can you even have the game treat comments like actual script? |
| Electrk:
or it could be like dayStart(); and nightStart(); or something |
| Navigation |
| Message Index |
| Next page |