Background for Fallout 4

GlobalVariable


Inheritance Tree

No indexed scripts extend this script.

Structs
Properties

vanilla

floatvalue=NONE
Events
Functions
floatfunctionGetValue()Native

Gets the current value of this global object.

voidfunctionSetValue(floatafNewValue)Native

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.

intfunctionGetValueInt()

Gets the current value of this global object, cast as an int for convenience.

voidfunctionSetValueInt(intaiNewValue)

Sets the current value of the global variable object, taking an int as a parameter. See GlobalVariable.SetValue(...)

floatfunctionMod(floatafHowMuch)

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.

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.