Difference between revisions of "GetValueInt - GlobalVariable"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Vitamant
m (1 revision: Clobber re-import by Henning)
 
imported>Goggle
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
int timeOfDay = TimeOfDayGlobalProperty.GetValueInt()
int timeOfDay = TimeOfDayGlobalProperty.GetValueInt()
</source>
</source>
== Note ==
* Slightly faster to use [[GetValue - GlobalVariable]] and cast as Int, as this function calls that one and then casts the value to int.


== See Also ==
== See Also ==

Latest revision as of 11:31, 11 September 2016

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

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

Note[edit | edit source]

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

See Also[edit | edit source]