Mod - GlobalVariable

Revision as of 17:48, 1 August 2017 by imported>Google12
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

SyntaxEdit

float Function Mod(float afHowMuch)

ParametersEdit

  • afHowMuch: How much to adjust the global by

Return ValueEdit

None.

ExamplesEdit

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

See AlsoEdit