Background for Skyrim SE
Member of the GlobalVariable script
floatfunctionMod(floatafHowMuch)

Description

Wiki Description

Modifies 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 fNewValue = TimeOfDayGlobal.Mod(1.0)

Auto-Generated Example

float myFloat__afHowMuch

float returnedValue = myGlobalVariable__toCallFunctionOn.Mod(myFloat__afHowMuch)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.