Djinni Wiki
Advertisement

function SetWeather (object oTarget, int nWeather, int nIntensity )

Set the weather for oTarget.

  • oTarget: if this is GetModule(), all outdoor areas will be modified by the weather constant. If it is an area, oTarget will play the weather only if it is an outdoor area.
  • nWeather: WEATHER_*
    • WEATHER_USER_AREA_SETTINGS will set the area back to random weather.
    • WEATHER_CLEAR, WEATHER_RAIN, WEATHER_SNOW, WEATHER_FOG will make the weather go to the appropriate precipitation without stopping.
  • nIntensity: weather intensity [0-100] (not used for WEATHER_CLEAR)
  • Return type: void
  • Include file: nwscriptdefn
Advertisement