SetValue - GlobalVariable

Revision as of 08:11, 12 September 2012 by imported>JLundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: GlobalVariable Script

Sets the current value of the global variable object. Will print an error and fail if you try to set a value on a constant global variable object.

SyntaxEdit

Function SetValue(float afValue) native

ParametersEdit

  • afValue: What value to set the global to.

Return ValueEdit

None.

ExamplesEdit

; Set the time of day to 0
TimeOfDayGlobalProperty.SetValue(0)

See AlsoEdit