Перейти к содержанию

World::setWeatherTransition

Материал из RAGE MP Wiki Archive

Server-Side
Function

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения JavaScript



This function start a weather transition to the weather specified and sync it to all clients.

Syntax

mp.world.setWeatherTransition(weather, easeTime)

Required Arguments

  • *weather: String (Weather)
  • easeTime: Int (Weather transitioning time)

Note: the second use with easeTime field seems to be buggy, it has graphical issues with transition from SMOG to FOGGY weather (and probably with some other weather), so right now the best choice would be to do weather transition on client side and sync it manually.

Example

Server-Side
mp.world.setWeatherTransition("CLEARING"); // Set's the server's weather to 'CLEARING' immediately
mp.world.setWeatherTransition("CLEARING", 600000); // Set's the server's weather to 'CLEARING' with 10 minutes transition


See Also