Background for Fallout 4
Member of the Weather script
floatfunctionGetCurrentWeatherTransition()NativeGlobal

Description

Wiki Description

Returns a value from 0.0 to 1.0 describing how far in the current weather has transitioned. If no transition is occurring, this function returns 1.0 and Weather.GetOutgoingWeather() returns none. If this function returns any other value, Weather.GetOutgoingWeather() returns the weather which is transitioning out and Weather.GetCurrentWeather() returns the weather which is transitioning in.

Documentation Comment

Gets the transition percentage of the current weather


Examples

float curTransition = Weather.GetCurrentWeatherTransition()
if (curTransition == 1.0)
  Debug.Trace("Weather is not transitioning!")
else
  Debug.Trace("Weather is transitioning and is " + (curTransition * 100) + "% done")
endIf

Auto-Generated Example

float returnedValue = Weather.GetCurrentWeatherTransition()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.