User Tools

Site Tools


eliteapi:functions:weather:getcurrentweather

GetCurrentWeather

Obtains the current weather id within the given zone that the player is currently in.

ELITEAPI_API int __stdcall GetCurrentWeather(void* apiObject);

Parameters

  • apiObject [in]
    • A handle to an EliteAPI object.

Return Value

Returns the current weather id. If the function has any internal issues, the value returned will be 0.

The list of known weather ids is as follows:

  • 0 = Clear
  • 1 = Sunny
  • 2 = Cloudy
  • 3 = Fog
  • 4 = Fire
  • 5 = Fire x2
  • 6 = Water
  • 7 = Water x2
  • 8 = Earth
  • 9 = Earth x2
  • 10 = Wind
  • 11 = Wind x2
  • 12 = Ice
  • 13 = Ice x2
  • 14 = Lightning
  • 15 = Lightning x2
  • 16 = Light
  • 17 = Light x2
  • 18 = Dark
  • 19 = Dark x2
eliteapi/functions/weather/getcurrentweather.txt · Last modified: 2014/12/05 22:27 by atom0s