Mod - GlobalVariable

From the CreationKit Wiki
Revision as of 17:06, 18 October 2011 by imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' GlobalVariable Script Modifies the value of the global variable in a thread-safe way (value can't change between…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: GlobalVariable Script

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.

Syntax

float Function Mod(float afHowMuch)

Parameters

  • afHowMuch: How much to adjust the global by

Return Value

None.

Examples

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

See Also