Hello everyone!
I have the following problem:
I installed a script to change day and night, and it works, but...
When the daytime lighting changes to nighttime, the hero menu becomes unavailable, and only for player #1.
What could be the problem?
Here is the code:
curr_light = 'day'
function DayNight()
if curr_light == 'day' then
SetAmbientLight(GROUND, 'NIGHT', 1, 5.0)
curr_light = 'night'
else
SetAmbientLight(GROUND, 'DAY', 1, 5.0)
curr_light = 'day'
end
end
Does this only happen when launching the map through Multiplayer? Is everything normal in single-player? I had a similar bug when calling showFlyingSign(), until the notification appears on the screen for all players, there will be no access to the hero menu, or rather, there will be, but when you click on the hero icon, the menu will open for the last player (I set all players to be controlled by a human and tested). Basically, there are functions that need to be displayed on the screen of each human player to work correctly. PEST fixes this in Multiplayer