GetValueInt - GlobalVariable

Revision as of 11:31, 11 September 2016 by imported>Goggle (→‎Note)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: GlobalVariable Script

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

SyntaxEdit

int Function GetValueInt()

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()

NoteEdit

  • Slightly faster to use GetValue - GlobalVariable and cast as Int, as this function calls that one and then casts the value to int.

See AlsoEdit