SetValue - GlobalVariable

From the CreationKit Wiki
Revision as of 15:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

Syntax

Function SetValue(float afValue) native

Parameters

  • afValue: What value to set the global to.

Return Value

None.

Examples

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

See Also