Difference between revisions of "Global"

8 bytes removed ,  00:30, 8 July 2012
→‎Scripting: fix formatting
imported>Threedee
(Undo revision 32690 by Threedee (talk) formatting problems)
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)
Anonymous user