Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

renetta96

Hamlet 'seasonChange' event doesn't work

Recommended Posts

renetta96    4

On console I enter this :

GetPlayer():ListenForEvent("seasonChange", function(it, data) print("CHANGED") end, GetWorld())

then

GetSeasonManager():StartHumid()

but nothing is printed. I'm using a mod character.

Is this a bug or expected ?

 

Thanks. 

Share this post


Link to post
Share on other sites
bizziboi    1,770

I just tried your code in a Hamlet world in the console with the version as currently on Steam and for me it prints "CHANGED"

Share this post


Link to post
Share on other sites
rezecib    3,143

Yikes, sorry about that. It was a bug in my workaround for the lack of "seasonlengthschanged" in single-player, but I made a mistake when proxying the __index metamethod... I think I can now conclude that the Lua idiom of using boolean operators for control flow is generally A Bad Thing.

Share this post


Link to post
Share on other sites