Difference between revisions of "SetValueInt - GlobalVariable"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
imported>Goggle
 
Line 20: Line 20:
DoCoolStuffGlobal.SetValueInt(1)
DoCoolStuffGlobal.SetValueInt(1)
</source>
</source>
== Notes ==
* Slightly faster to use [[SetValue - GlobalVariable]] and cast as int, as this function calls that one and then casts to int.


== See Also ==
== See Also ==

Latest revision as of 00:04, 12 September 2016

Member of: GlobalVariable Script

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

Syntax[edit | edit source]

Function SetValueInt(int aiValue)

Parameters[edit | edit source]

  • aiValue: What value to set the global to.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

DoCoolStuffGlobal.SetValueInt(1)

Notes[edit | edit source]

See Also[edit | edit source]