Difference between revisions of "SetGameSettingString - Game"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(added f4se member)
 
imported>Mr Stealyogir
(Added Description and example)
 
Line 3: Line 3:
{{Template:Papyrus:RequiredF4SE|version=0.3.2}}
{{Template:Papyrus:RequiredF4SE|version=0.3.2}}


Placeholder Description.
This function sets a Game Setting to the specified value.
 
These include all the variables listed under Gameplay->Settings menu in the creation kit, but *does not* include variables set in the ini files. To set ini variables see [[SetINIString - Utility|SetINIString]].


== Syntax ==
== Syntax ==
Line 19: Line 21:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; Placeholder Code.
; Set string for when an item is too heavy
Game.SetGameSettingString("sItemTooHeavy", "This item is too heavy for a mere man to move!")
</source>
</source>



Latest revision as of 12:39, 23 December 2018

This article has been flagged as incomplete.
Please help improve the wiki by learning how to contribute.

F4SE Member of: Game Script
Requires F4SE version 0.3.2 or higher.

This function sets a Game Setting to the specified value.

These include all the variables listed under Gameplay->Settings menu in the creation kit, but *does not* include variables set in the ini files. To set ini variables see SetINIString.

Syntax[edit | edit source]

Function SetGameSettingString(string asSetting, string asValue) Native Global

Parameters[edit | edit source]

  • asSetting: Placeholder Description.
  • asValue: Placeholder Description.

Return Value[edit | edit source]

  • None

Examples[edit | edit source]

; Set string for when an item is too heavy
Game.SetGameSettingString("sItemTooHeavy", "This item is too heavy for a mere man to move!")

See Also[edit | edit source]