-
Notifications
You must be signed in to change notification settings - Fork 13
API Temperature
Nak edited this page Aug 18, 2021
·
2 revisions
If you want to display the current temperature on the client, you can make a function like so:
local function GetTemp()
return StormFox2.Temperature.GetDisplay() .. StormFox2.Temperature.GetDisplaySymbol()
endNote: Temperature is represented internally in C°.
| Functions | Returns | Description |
|---|---|---|
StormFox2.Temperature.Set( Number Celsius, Number LerpTime = 0 ) |
Sets the temperature. | |
StormFox2.Temperature.Get( String Type = "celsius" ) |
Number | Returns the current temperature. |
StormFox2.Temperature.GetDisplay( Number Celcius = CurrentTemperature ) |
Number | Converts the given or current temperature to the type the client use. Useful for displays. |
StormFox2.Temperature.GetDisplaySymbol() |
String | Returns the temperature-type symbol the client use. |
StormFox2.Temperature.GetDisplayType() |
String | Returns the temperature-type the client use. |
StormFox2.Temperature.GetTypes() |
Table | Returns all temperature types. |
StormFox2.Temperature.Convert( String From = "celsius", String To = "celsius", Number Number ) |
Number | Converts the given temperature. |
Wiki
-
CWI
-
Time
-
Temperature
-
Weather (TBD)
-
Sun (TBD)
-
Moon (TBD)
-
Downfall (TBD)
-
Terrain (TBD)
-
Map (TBD)
-
Data (TBD)
-
Network (TBD)
-
Client (TBD)
-
Environment (TBD)
StormFox2.Temperature.Set(
StormFox2.Temperature.Get(
StormFox2.Temperature.GetDisplay(