Difference between revisions of "GetValueInt - GlobalVariable"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>JustinOther m (Added note about expense of this vs. 'GetValue() As Int') |
||
Line 22: | Line 22: | ||
</source> | </source> | ||
== Notes == | |||
*Under the hood, this is 'GetValue() As Int' which is measurably faster. | |||
== See Also == | == See Also == | ||
*[[GlobalVariable Script]] | *[[GlobalVariable Script]] | ||
*[[GetValue - GlobalVariable]] | *[[GetValue - GlobalVariable]] | ||
*[[SetValueInt - GlobalVariable]] | *[[SetValueInt - GlobalVariable]] |
Revision as of 22:34, 5 October 2012
Member of: GlobalVariable Script
Gets the current value of this global object, cast as an int for convenience.
Syntax
int Function GetValueInt()
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.