Table of Contents

Class GlobalVariableScript

Namespace
SkyrimForge.Papyrus
Assembly
SkyrimForge.Game.dll

Functions and comments from GlobalVariable.psc.

public static class GlobalVariableScript
Inheritance
GlobalVariableScript
Inherited Members

Properties

Dispatcher

The dispatcher that binds this script to a form and calls the functions and properties that have no generated member.

public static PapyrusScriptDispatcher Dispatcher { get; }

Property Value

PapyrusScriptDispatcher

Methods

GetValue(PapyrusScript<GlobalVariable>)

Obtains the global's current value

public static Task<float> GetValue(this PapyrusScript<GlobalVariable> self)

Parameters

self PapyrusScript<GlobalVariable>

Returns

Task<float>

GetValueInt(PapyrusScript<GlobalVariable>)

convenience functions for ints

public static Task<int> GetValueInt(this PapyrusScript<GlobalVariable> self)

Parameters

self PapyrusScript<GlobalVariable>

Returns

Task<int>

Mod(PapyrusScript<GlobalVariable>, float)

the threadsafe way to modify a global variable

public static Task<float> Mod(this PapyrusScript<GlobalVariable> self, float afHowMuch)

Parameters

self PapyrusScript<GlobalVariable>
afHowMuch float

Returns

Task<float>

SetValue(PapyrusScript<GlobalVariable>, float)

Sets the global's current value

public static Task SetValue(this PapyrusScript<GlobalVariable> self, float afNewValue)

Parameters

self PapyrusScript<GlobalVariable>
afNewValue float

Returns

Task

SetValueInt(PapyrusScript<GlobalVariable>, int)

Sets the global's current value

public static Task SetValueInt(this PapyrusScript<GlobalVariable> self, int aiNewValue)

Parameters

self PapyrusScript<GlobalVariable>
aiNewValue int

Returns

Task

get_Value(PapyrusScript<GlobalVariable>)

Easy access to the global's value

public static Task<float> get_Value(PapyrusScript<GlobalVariable> self)

Parameters

self PapyrusScript<GlobalVariable>

Returns

Task<float>