Difference between revisions of "GetValue - GlobalVariable"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>JLundin
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Non-delayed Native Function]]
'''Member of:''' [[GlobalVariable Script]]
'''Member of:''' [[GlobalVariable Script]]


Line 19: Line 20:
<source lang="papyrus">
<source lang="papyrus">
; Obtain the current time of day
; Obtain the current time of day
int timeOfDay = TimeOfDayGlobalProperty.GetValue()
float timeOfDay = TimeOfDayGlobalProperty.GetValue()
</source>
</source>



Latest revision as of 08:11, 12 September 2012

Member of: GlobalVariable Script

Gets the current value of this global object.

Syntax[edit | edit source]

float Function GetValue() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The current value the global holds.

Examples[edit | edit source]

; Obtain the current time of day
float timeOfDay = TimeOfDayGlobalProperty.GetValue()

See Also[edit | edit source]