er2.synchWeather 69

Apply the weather changes to all clients. Must be called on Master Client.
After calling this, set weather is automatically applied for newly connected clients.
Calling it too often can result in high network traffic and mission crash.


Return value

Return TypeDescription
voidThis function doesn't return anything

No parameters defined for this function.


Examples

Set weather and snow, synched online

er2.setTimeAndWeather(17, 20, 0.5, 0.6, 0.4) -- Set 5:20 PM with cloudy sky, some rain on the ground and some fog
er2.setSnowing() -- set snow falling from the sky
er2.synchWeather() -- apply set weather to all clients, including future connecting ones

Back to Scripting API