SetGameSettingBool - Game

Revision as of 05:36, 6 September 2012 by imported>JustinOther (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Game Script Modifies the value of boolean Game Settings. (This function r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: Game Script

Modifies the value of boolean Game Settings. (This function requires SKSE)

SyntaxEdit

Function SetGameSettingBool(String setting, Bool value) Global Native

ParametersEdit

  • Setting: The Game Setting to modify
  • Value: The desired boolean value

Return ValueEdit

None

ExamplesEdit

Game.SetGameSettingBool("bRegenNPCMagickaDuringCast", True)

NotesEdit

  • Boolean settings are treated as integers and set to 0 or 1 rather than True or False.
  • There is no GetGameSettingBool.
  • Edits to Game Settings are not saved. While they'll persist across consecutive save loads during the same game session, they'll be wiped when the game closes and will revert to their normal values the next time the game is loaded. One can maintain such edits via a maintenance function, reapplying the changes when necessary.

See AlsoEdit