Difference between revisions of "Game Script"

247 bytes added ,  12:28, 15 September 2022
Added missing F4SE GetCameraState() function
imported>ShadeMe
(Add missing F4SE global functions, and "F4SE" to section header)
(Added missing F4SE GetCameraState() function)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Scripting]]
Collection of game-specific global functions.
[[Category:Papyrus]]
[[Category:Script Objects]]
Collection of game-specific global functions


== Definition ==
== Definition ==
Line 11: Line 8:
== 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 243: Line 247:


== F4SE Global Functions ==
== F4SE Global Functions ==
*Int Function [[GetCameraState - Game|GetCameraState]]()
**Returns the current player camera state.
*ObjectReference Function [[GetCurrentConsoleRef - Game|GetCurrentConsoleRef]]()
*ObjectReference Function [[GetCurrentConsoleRef - Game|GetCurrentConsoleRef]]()
**Returns the current console reference.
**Returns the current console reference.
Line 257: Line 264:
*Function [[SetGameSettingBool - Game|SetGameSettingBool]](string asSetting, bool abValue)
*Function [[SetGameSettingBool - Game|SetGameSettingBool]](string asSetting, bool abValue)
**Set the value of a boolean GameSetting.
**Set the value of a boolean GameSetting.
*Function [[SetGameSettingInt - Game|SetGameSettingInt]](string asSetting, int aiValue)
**Set the value of a int GameSetting.


*Function [[SetGameSettingFloat - Game|SetGameSettingFloat]](string asSetting, float afValue)
*Function [[SetGameSettingFloat - Game|SetGameSettingFloat]](string asSetting, float afValue)
**Set the value of a float GameSetting.
**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)
*Function [[SetGameSettingString - Game|SetGameSettingString]](string asSetting, string asString)
Line 277: Line 284:


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

edits