GetValueInt - GlobalVariable

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: GlobalVariable Script

Gets the current value of this global object, cast as an int for convenience.

Syntax[edit | edit source]

int Function GetValueInt()
	return GetValue() as int
endFunction

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The current value the global holds, cast as an int.

Examples[edit | edit source]

; Obtain the current time of day
int timeOfDay = TimeOfDayGlobalProperty.GetValueInt()

Notes[edit | edit source]

  • Under the hood, this is 'GetValue() As Int' which is measurably faster.

See Also[edit | edit source]