Mod - GlobalVariable

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: 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[edit | edit source]

float Function Mod(float afHowMuch)

Parameters[edit | edit source]

  • afHowMuch: How much to adjust the global by

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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

See Also[edit | edit source]