Mod:Creation Kit/Mod - GlobalVariable

Member of: Mod:Creation Kit/GlobalVariable Script

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.

Syntax
float Function Mod(float afHowMuch)

Parameters

 * afHowMuch: How much to adjust the global by

Return Value
None.

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