Mod - GlobalVariable
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.
SyntaxEdit
float Function Mod(float afHowMuch)
Value += afHowMuch
Return Value
EndFunction
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 fNewValue = TimeOfDayGlobal.Mod(1.0)