Background for Fallout 4

The GlobalVariable Script

    The GlobalVariable script is a part of Fallout 4’s Papyrus scripting ecosystem. It is included with the base game.

    For this script, the Papyrus index knows about:

    • 5 functions
    • 1 property


    Inheritance Tree

    No indexed scripts extend this script.

    Structs

    The Papyrus Index is still under construction. Structs have not been implemented yet.

      Properties

      • vanilla

        • floatvalue=NONE

        Events

          No events found.

        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.