Difference between revisions of "GlobalVariable Script"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
imported>Qazaaq
Line 2: Line 2:
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Script Objects]]
[[Category:Script Objects]]
[[Category:Miscellaneous]]
'''Extends:''' [[Form Script]]


'''Extends:''' [[Form Script]]
'''Editor:''' [[Global]]


Script for the manipulation of global variable objects.
Script for the manipulation of global variable objects.
Line 32: Line 34:
== Events ==
== Events ==
None
None
== See Also ==
*[[:Category:Miscellaneous|Miscellaneous Category]]

Revision as of 01:26, 13 July 2016

Extends: Form Script

Editor: Global

Script for the manipulation of global variable objects.

Definition

ScriptName GlobalVariable extends Form Native Hidden

Properties

  • float Value [read-write]: The current value of this global variable object.

Global Functions

None

Member Functions

  • float Function GetValue()
    • Returns this global variable's current value.
  • int Function GetValueInt()
    • Returns this global variable's current value cast as an int.
  • float Function Mod(float afHowMuch)
    • Modifies this global variable's value in a more thread-safe way.
  • Function SetValue(float afNewValue)
    • Sets this global variable's current value.
  • Function SetValueInt(int aiNewValue)
    • Sets this global variable's current value to the specified int.

Events

None

See Also