Background for Skyrim SE
Member of the GlobalVariable script
voidfunctionSetValue(floatafNewValue)Native

Description

Wiki Description

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.

Documentation Comment

Sets the global's current value


Caveats


Parameters

floatafNewValue

CK Wiki Description

What value to set the global to.


Examples

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

Auto-Generated Example

float myFloat__afNewValue

myGlobalVariable__toCallFunctionOn.SetValue(myFloat__afNewValue)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.