GetValueInt - GlobalVariable

From the CreationKit Wiki
Revision as of 18:47, 29 June 2013 by imported>Thingy Person (→‎Syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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

Parameters

None.

Return Value

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

Examples

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

Notes

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

See Also