Background for Fallout 4
Member of the GlobalVariable script
floatfunctionMod(floatafHowMuch)

Description

Wiki Description

Adjusts the value of the global variable in a thread-safe way (value can't change between read and write of the global), and returns the new value.

Documentation Comment

the threadsafe way to modify a global variable


Caveats


Parameters

floatafHowMuch

CK Wiki Description

How much to adjust the global by


Examples

; Add one to the time of day global and get the new value
float newValue = TimeOfDayGlobal.Mod(1)

Auto-Generated Example

float myFloat__afHowMuch

float returnedValue = myGlobalVariable__toCallFunctionOn.Mod(myFloat__afHowMuch)

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.