GetValueInt - GlobalVariable

Member of: GlobalVariable Script

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

SyntaxEdit

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

ParametersEdit

None.

Return ValueEdit

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

ExamplesEdit

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

NotesEdit

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

See AlsoEdit