Editing Game Script

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Collection of game-specific global functions.
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]
 
Collection of game-specific global functions


== Definition ==
== Definition ==
Line 8: Line 12:
== Properties ==
== Properties ==
None
None
== Structs ==
None
== F4SE Structs ==
*Struct [[PluginInfo Struct - Game|PluginInfo]]
**A structure that holds information about a plugin.


== Global Functions ==
== Global Functions ==
Line 245: Line 242:
*Function [[Warning - Game|Warning]](string asMessage)
*Function [[Warning - Game|Warning]](string asMessage)
**Emits a warning to the papyrus log and the game warning system.
**Emits a warning to the papyrus log and the game warning system.
== F4SE Global Functions ==
*Int Function [[GetCameraState - Game|GetCameraState]]()
**Returns the current player camera state.
*ObjectReference Function [[GetCurrentConsoleRef - Game|GetCurrentConsoleRef]]()
**Returns the current console reference.
*PluginInfo[] Function [[GetInstalledPlugins - Game|GetInstalledPlugins]]()
**Returns an array of currently installed esm and esp files.
*PluginInfo[] Function [[GetInstalledLightPlugins - Game|GetInstalledLightPlugins]]()
**Returns an array of currently installed esl files.
*string[] Function [[GetPluginDependencies - Game|GetPluginDependencies]](string asPluginName)
**Returns an array of plugin dependencies for the specified plugin.
*Function [[SetGameSettingBool - Game|SetGameSettingBool]](string asSetting, bool abValue)
**Set the value of a boolean GameSetting.
*Function [[SetGameSettingFloat - Game|SetGameSettingFloat]](string asSetting, float afValue)
**Set the value of a float GameSetting.
*Function [[SetGameSettingInt - Game|SetGameSettingInt]](string asSetting, int aiValue)
**Set the value of an int GameSetting.
*Function [[SetGameSettingString - Game|SetGameSettingString]](string asSetting, string asString)
**Set the value of a string GameSetting.


== Member Functions ==
== Member Functions ==
None
== F4SE Member Functions ==
None
None


== Events ==
== Events ==
None
None
== See Also ==
*[[Data_File|Data Files]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]

Please note that all contributions to the Fallout4 CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see FalloutCK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)