Difference between revisions of "Global"
Jump to navigation
Jump to search
→Scripting: fix formatting
imported>Threedee |
imported>Threedee (→Scripting: fix formatting) |
||
Line 16: | Line 16: | ||
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]] | 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 | GlobalVariable Property GameHour auto | ||
float myhour = GameHour.Getvalue() | float myhour = GameHour.Getvalue() | ||
GameHour.Setvalue(10) | GameHour.Setvalue(10) |