• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Day/Night

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,200
Solutions
2
Reaction score
149
is there any way of when to stay day/night my server give a print (only one print per change) on my screen?

tfs 1.x+
 
Last edited by a moderator:
you can start by adding some prints at this function
otland/forgottenserver
everytime that time changes lightChange is setted to "true" so if you add some prints in here

C++:
if (lightChange) {
        LightInfo lightInfo = getWorldLightInfo();

        for (const auto& it : players) {
            it.second->sendWorldLight(lightInfo);
        }
}

that way you can check when the light changes.
 
you can start by adding some prints at this function
otland/forgottenserver
everytime that time changes lightChange is setted to "true" so if you add some prints in here

C++:
if (lightChange) {
        LightInfo lightInfo = getWorldLightInfo();

        for (const auto& it : players) {
            it.second->sendWorldLight(lightInfo);
        }
}

that way you can check when the light changes.

but how I can know if changed to day, night or other?
 
??

I need print every change, but only 1 print each diff change ofc :S
 
Last edited by a moderator:

Similar threads

Back
Top