Difference between revisions of "GetValueInt - GlobalVariable"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Thingy Person (→Syntax) |
||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
int Function GetValueInt() | int Function GetValueInt() | ||
return GetValue() as int | |||
endFunction | |||
</source> | </source> | ||
Line 22: | Line 24: | ||
</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]] |
Latest revision as of 18:47, 29 June 2013
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.