SetValue - GlobalVariable

From the Fallout4 CreationKit Wiki
Revision as of 16:21, 20 June 2019 by imported>Ice Eyes (→‎Parameters: Corrected parameter name)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: GlobalVariable Script

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.

Syntax[edit | edit source]

Function SetValue(float afNewValue) native

Parameters[edit | edit source]

  • afNewValue: What value to set the global to.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Set the XP boost global to 1.5
XPBoostGlobal.SetValue(1.5)

See Also[edit | edit source]