Difference between revisions of "Global"
Jump to navigation
Jump to search
m
→Scripting: Added a note that global variables must be passed into the script via properties.
imported>Sagitarius22 m |
imported>Threedee m (→Scripting: Added a note that global variables must be passed into the script via properties.) |
||
Line 14: | Line 14: | ||
==Accessing Global Variables== | ==Accessing Global Variables== | ||
===Scripting=== | ===Scripting=== | ||
To access global variables in Papyrus scripts, one needs to use the functions [[GetValue]] and [[SetValue]] | To access global variables in Papyrus scripts, the global variable must be passed into the script as a property. Then one needs to use the functions [[GetValue]] and [[SetValue]] | ||
GlobalVariable Property GameHour auto | |||
....... | |||
float myhour = GameHour.Getvalue() | float myhour = GameHour.Getvalue() | ||
GameHour.Setvalue(10) | GameHour.Setvalue(10) |