Background for Fallout 4
Member of the GlobalVariable script
voidfunctionSetValueInt(intaiNewValue)

Description

Wiki Description

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

Documentation Comment

Sets the global's current value


Caveats

CK Wiki - Notes

  • Slightly faster to use GlobalVariable.SetValue(...) and cast as int, as this function calls that one and then casts to int.

Parameters

intaiNewValue

CK Wiki Description

What value to set the global to.


Examples

DoCoolStuffGlobal.SetValueInt(1)

Auto-Generated Example

int myInt__aiNewValue

myGlobalVariable__toCallFunctionOn.SetValueInt(myInt__aiNewValue)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

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