Difference between revisions of "Game Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>CraftySentinel
m (→‎SKSE Global Functions: Minor Formatting change)
imported>Pickysaurus
(→‎SKSE Global Functions: Added IsPluginInstalled)
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''Source:''' Creation Kit
'''Extends:''' None
'''Extends:''' None


'''Flags:''' [[Flag Reference|Hidden]]
Collection of game-specific global functions


Collection of game-specific global functions


== Definition ==
== Definition ==
Line 17: Line 12:
== Global Functions ==
== Global Functions ==


{|class="wikitable" width =100%
:'''[[AddAchievement - Game|AddAchievement]](Int ''aiAchievementID'')'''
!style="text-align:left;"|Function
:*Adds the specified achievement/trophy to the player's gamer profile.
!style="text-align:left;"|Description
|-
|[[AddAchievement - Game|'''AddAchievement'''(Int ''aiAchievementID'')]]
|Adds the specified achievement/trophy to the player's gamer profile.
|-


|[[AddPerkPoints - Game|'''AddPerkPoints'''(Int ''aiPerkPoints'')]]
:'''[[AddPerkPoints - Game|AddPerkPoints]](Int ''aiPerkPoints'')'''
|Adds the given number of perk points to the player. Clamped at 255.
:*Adds the given number of perk points to the player. Clamped at 255.
|-


|[[AdvanceSkill - Game|'''AdvanceSkill'''(String ''asSkillName'', Float ''afMagnitude'')]]
:'''[[AdvanceSkill - Game|AdvanceSkill]](String ''asSkillName'', Float ''afMagnitude'')'''
|Advance the given skill on the player by the provided amount of skill usage
:*Advance the given skill on the player by the provided amount of skill usage
|-


|[[AddHavokBallAndSocketConstraint - Game|Bool '''AddHavokBallAndSocketConstraint'''(ObjectReference ''arRefA'', String ''arRefANode'', ObjectReference ''arRefB'', String ''arRefBNode'', Float ''afRefALocalOffsetX'', Float ''afRefALocalOffsetY'', Float ''afRefALocalOffsetZ'', Float ''afRefBLocalOffsetX'', Float ''afRefBLocalOffsetY'', Float ''afRefBLocalOffsetZ'')]]
:'''Bool [[AddHavokBallAndSocketConstraint - Game|AddHavokBallAndSocketConstraint]](ObjectReference ''arRefA'', String ''arRefANode'', ObjectReference ''arRefB'', String ''arRefBNode'', Float ''afRefALocalOffsetX'', Float ''afRefALocalOffsetY'', Float ''afRefALocalOffsetZ'', Float ''afRefBLocalOffsetX'', Float ''afRefBLocalOffsetY'', Float ''afRefBLocalOffsetZ'')'''
|Adds a ball-and-socket constraint between two rigid bodies, identified by their ref and node names
:*Adds a ball-and-socket constraint between two rigid bodies, identified by their ref and node names
|-


|[[CalculateFavorCost - Game|Int '''CalculateFavorCost'''(Int ''aiFavorPrice'')]]
:'''Int [[CalculateFavorCost - Game|CalculateFavorCost]](Int ''aiFavorPrice'')'''
|Calculates how many points the player would have to pay for a favor of the specified price.
:*Calculates how many points the player would have to pay for a favor of the specified price.
|-


|[[ClearPrison - Game|'''ClearPrison'''()]]
:'''[[ClearPrison - Game|ClearPrison]]()'''
|Clears all Prison variables on the PlayerCharacter so the game will know he is out of prison.
:*Clears all Prison variables on the PlayerCharacter so the game will know he is out of prison.
|-


|[[ClearTempEffects - Game|'''ClearTempEffects'''()]]
:'''[[ClearTempEffects - Game|ClearTempEffects]]()'''
|Clears all temp effects (such as terrain effects) in the game.
:*Clears all temp effects (such as terrain effects) in the game.
|-


|[[DisablePlayerControls - Game|'''DisablePlayerControls'''(Bool ''abMovement'', Bool ''abFighting'', Bool ''abCamSwitch'', Bool ''abLooking'', Bool ''abSneaking'', Bool ''abMenu'', Bool ''abActivate'', Bool ''abJournalTabs'', Int ''aiDisablePOVType'')]]
:'''[[DisablePlayerControls - Game|DisablePlayerControls]](Bool ''abMovement'', Bool ''abFighting'', Bool ''abCamSwitch'', Bool ''abLooking'', Bool ''abSneaking'', Bool ''abMenu'', Bool ''abActivate'', Bool ''abJournalTabs'', Int ''aiDisablePOVType'')'''
|Disables the specified player controls.
:*Disables the specified player controls.
|-


|[[EnableFastTravel - Game|'''EnableFastTravel'''(Bool ''abEnable'')]]
:'''[[EnableFastTravel - Game|EnableFastTravel]](Bool ''abEnable'')'''
|Enables or disables the player's ability to fast travel.
:*Enables or disables the player's ability to fast travel.
|-


|[[EnablePlayerControls - Game|'''EnablePlayerControls'''(Bool ''abMovement'', Bool ''abFighting'', Bool ''abCamSwitch'', Bool ''abLooking'', Bool ''abSneaking'', Bool ''abMenu'', Bool ''abActivate'', Bool ''abJournalTabs'', Int ''aiDisablePOVType'')]]
:'''[[EnablePlayerControls - Game|EnablePlayerControls]](Bool ''abMovement'', Bool ''abFighting'', Bool ''abCamSwitch'', Bool ''abLooking'', Bool ''abSneaking'', Bool ''abMenu'', Bool ''abActivate'', Bool ''abJournalTabs'', Int ''aiDisablePOVType'')'''
|Enables the specified player controls.
:*Enables the specified player controls.
|-


|[[FadeOutGame - Game|'''FadeOutGame'''(Bool ''abFadingOut'', Bool ''abBlackFade'', Float ''afSecsBeforeFade'', Float ''afFadeDuration'')]]
:'''[[FadeOutGame - Game|FadeOutGame]](Bool ''abFadingOut'', Bool ''abBlackFade'', Float ''afSecsBeforeFade'', Float ''afFadeDuration'')'''
|Fades the game in and out with the specified parameters.
:*Fades the game in and out with the specified parameters.
|-


|[[FastTravel - Game|'''FastTravel'''(ObjectReference ''akDestination'')]]
:'''[[FastTravel - Game|FastTravel]](ObjectReference ''akDestination'')'''
|Fast-travels the player to the specified object's location.
:*Fast-travels the player to the specified object's location.
|-


|[[FindClosestActor - Game|Actor '''FindClosestActor'''(Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
:'''Actor [[FindClosestActor - Game|FindClosestActor]](Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')'''
|Finds the closest actor within a given radius of a location
:*Finds the closest actor within a given radius of a location
|-


|[[FindClosestActorFromRef - Game|Actor '''FindClosestActorFromRef'''(ObjectReference ''arCenter'', Float ''afRadius'')]]
:'''Actor [[FindClosestActorFromRef - Game|FindClosestActorFromRef]](ObjectReference ''arCenter'', Float ''afRadius'')'''
|Finds the closest actor within a given radius of a reference
:*Finds the closest actor within a given radius of a reference
|-


|[[FindClosestReferenceOfAnyTypeInList - Game|ObjectReference '''FindClosestReferenceOfAnyTypeInList'''(FormList ''arBaseObjects'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
:'''ObjectReference [[FindClosestReferenceOfAnyTypeInList - Game|FindClosestReferenceOfAnyTypeInList]](FormList ''arBaseObjects'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')'''
|Finds the closest reference of any of the base objects in the list within a given radius of a location
:*Finds the closest reference of any of the base objects in the list within a given radius of a location
|-


|[[FindClosestReferenceOfAnyTypeInListFromRef - Game|ObjectReference '''FindClosestReferenceOfAnyTypeInListFromRef'''(FormList ''arBaseObjects'', ObjectReference ''arCenter'', Float ''afRadius'')]]
:'''ObjectReference [[FindClosestReferenceOfAnyTypeInListFromRef - Game|FindClosestReferenceOfAnyTypeInListFromRef]](FormList ''arBaseObjects'', ObjectReference ''arCenter'', Float ''afRadius'')'''
|Finds the closest reference of any of the base objects in the list within a given radius of a reference
:*Finds the closest reference of any of the base objects in the list within a given radius of a reference
|-


|[[FindClosestReferenceOfType - Game|ObjectReference '''FindClosestReferenceOfType'''(Form ''arBaseObject'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
:'''ObjectReference [[FindClosestReferenceOfType - Game|FindClosestReferenceOfType]](Form ''arBaseObject'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')'''
|Finds the closest reference of a given base object within a given radius of a location
:*Finds the closest reference of a given base object within a given radius of a location
|-


|[[FindClosestReferenceOfTypeFromRef - Game|ObjectReference '''FindClosestReferenceOfTypeFromRef'''(Form ''arBaseObject'', ObjectReference ''arCenter'', Float ''afRadius'')]]
:'''ObjectReference [[FindClosestReferenceOfTypeFromRef - Game|FindClosestReferenceOfTypeFromRef]](Form ''arBaseObject'', ObjectReference ''arCenter'', Float ''afRadius'')'''
|Finds the closest reference of a given base object within a given radius of a reference
:*Finds the closest reference of a given base object within a given radius of a reference
|-


|[[FindRandomActor - Game|Actor '''FindRandomActor'''(Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
:'''Actor [[FindRandomActor - Game|FindRandomActor]](Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')'''
|Finds a random actor within a given radius of a location
:*Finds a random actor within a given radius of a location
|-


|[[FindRandomActorFromRef - Game|Actor '''FindRandomActorFromRef'''(ObjectReference ''arCenter'', Float ''afRadius'')]]
:'''Actor [[FindRandomActorFromRef - Game|FindRandomActorFromRef]](ObjectReference ''arCenter'', Float ''afRadius'')'''
|Finds a random actor within a given radius of a reference
:*Finds a random actor within a given radius of a reference
|-


|[[FindRandomReferenceOfAnyTypeInList - Game|ObjectReference '''FindRandomReferenceOfAnyTypeInList'''(FormList ''arBaseObjects'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
:'''ObjectReference [[FindRandomReferenceOfAnyTypeInList - Game|FindRandomReferenceOfAnyTypeInList]](FormList ''arBaseObjects'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')'''
|Finds a random reference of any of the base objects in the list within a given radius of a location
:*Finds a random reference of any of the base objects in the list within a given radius of a location
|-


|[[FindRandomReferenceOfAnyTypeInListFromRef - Game|ObjectReference '''FindRandomReferenceOfAnyTypeInListFromRef'''(FormList ''arBaseObjects'', ObjectReference ''arCenter'', Float ''afRadius'')]]
:'''ObjectReference [[FindRandomReferenceOfAnyTypeInListFromRef - Game|FindRandomReferenceOfAnyTypeInListFromRef]](FormList ''arBaseObjects'', ObjectReference ''arCenter'', Float ''afRadius'')'''
|Finds a random reference of any of the base objects in the list within a given radius of a reference
:*Finds a random reference of any of the base objects in the list within a given radius of a reference
|-


|[[FindRandomReferenceOfType - Game|ObjectReference '''FindRandomReferenceOfType'''(Form ''arBaseObject'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
:'''ObjectReference [[FindRandomReferenceOfType - Game|FindRandomReferenceOfType]](Form ''arBaseObject'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')'''
|Finds a random reference of a given base object within a given radius of a location
:*Finds a random reference of a given base object within a given radius of a location
|-


|[[FindRandomReferenceOfTypeFromRef - Game|ObjectReference '''FindRandomReferenceOfTypeFromRef'''(Form ''arBaseObject'', ObjectReference ''arCenter'', Float ''afRadius'')]]
:'''ObjectReference [[FindRandomReferenceOfTypeFromRef - Game|FindRandomReferenceOfTypeFromRef]](Form ''arBaseObject'', ObjectReference ''arCenter'', Float ''afRadius'')'''
|Finds a random reference of a given base object within a given radius of a reference
:*Finds a random reference of a given base object within a given radius of a reference
|-


|[[ForceFirstPerson - Game|'''ForceFirstPerson'''()]]
:'''[[ForceFirstPerson - Game|ForceFirstPerson]]()'''
|Forces the player camera into 1st-person.
:*Forces the player camera into 1st-person.
|-


|[[ForceThirdPerson - Game|'''ForceThirdPerson'''()]]
:'''[[ForceThirdPerson - Game|ForceThirdPerson]]()'''
|Forces the player camera into 3rd-person.
:*Forces the player camera into 3rd-person.
|-


|[[GetForm - Game|Form '''GetForm'''(Int ''aiFormID'')]]
:'''Form [[GetForm - Game|GetForm]](Int ''aiFormID'')'''
|Obtains a [[Form Script|Form]] from the game by its form ID number.
:*Obtains a [[Form Script|Form]] from the game by its form ID number.
|-


|[[GetFormFromFile - Game|Form '''GetFormFromFile'''(Int ''aiFormID'', String ''asFilename'')]]
:'''Form [[GetFormFromFile - Game|GetFormFromFile]](Int ''aiFormID'', String ''asFilename'')'''
|Obtains the form specified by its form ID number which originated in the specified file.
:*Obtains the form specified by its form ID number which originated in the specified file.
|-


|[[GetGameSettingFloat - Game|Float '''GetGameSettingFloat'''(String ''asGameSetting'')]]
:'''Float [[GetGameSettingFloat - Game|GetGameSettingFloat]](String ''asGameSetting'')'''
|Obtains the value of a float game setting.
:*Obtains the value of a float game setting.
|-


|[[GetGameSettingInt - Game|Float '''GetGameSettingInt'''(String ''asGameSetting'')]]
:'''Float [[GetGameSettingInt - Game|GetGameSettingInt]](String ''asGameSetting'')'''
|Obtains the value of an int game setting.
:*Obtains the value of an int game setting.
|-


|[[GetGameSettingString - Game|Float '''GetGameSettingString'''(String ''asGameSetting'')]]
:'''Float [[GetGameSettingString - Game|GetGameSettingString]](String ''asGameSetting'')'''
|Obtains the value of a string game setting.
:*Obtains the value of a string game setting.
|-


|[[GetPlayer - Game|Actor '''GetPlayer'''()]]
:'''Actor [[GetPlayer - Game|GetPlayer]]()'''
|Obtains the [[Actor Script|Actor]] that represents the player.
:*Obtains the [[Actor Script|Actor]] that represents the player.
|-


|[[GetPlayerGrabbedRef - Game|ObjectReference '''GetPlayerGrabbedRef'''()]]
:'''ObjectReference [[GetPlayerGrabbedRef - Game|GetPlayerGrabbedRef]]()'''
|Obtains the [[ObjectReference Script|ObjectReference]] the player is currently grabbing.
:*Obtains the [[ObjectReference Script|ObjectReference]] the player is currently grabbing.
|-


|[[GetPlayersLastRiddenHorse - Game|Actor '''GetPlayersLastRiddenHorse'''()]]
:'''Actor [[GetPlayersLastRiddenHorse - Game|GetPlayersLastRiddenHorse]]()'''
|Gets this actors last ridden horse if it is the player. Returns None if player has not ridden a horse is not the player.
:*Gets this actors last ridden horse if it is the player. Returns None if player has not ridden a horse is not the player.
|-


|[[GetRealHoursPassed - Game|Float '''GetRealHoursPassed'''()]]
:'''Float [[GetRealHoursPassed - Game|GetRealHoursPassed]]()'''
|Returns the number of real-life hours that have passed playing the game.
:*Returns the number of real-life hours that have passed playing the game.
|-


|[[GetSunPositionX - Game|Float '''GetSunPositionX'''()]]
:'''Float [[GetSunPositionX - Game|GetSunPositionX]]()'''
|Gets the X position of the sun.
:*Gets the X position of the sun.
|-


|[[GetSunPositionY - Game|Float '''GetSunPositionY'''()]]
:'''Float [[GetSunPositionY - Game|GetSunPositionY]]()'''
|Gets the Y position of the sun.
:*Gets the Y position of the sun.
|-


|[[GetSunPositionZ - Game|Float '''GetSunPositionZ'''()]]
:'''Float [[GetSunPositionZ - Game|GetSunPositionZ]]()'''
|Gets the Z position of the sun.
:*Gets the Z position of the sun.
|-


|[[HideTitleSequenceMenu - Game|'''HideTitleSequenceMenu'''()]]
:'''[[HideTitleSequenceMenu - Game|HideTitleSequenceMenu]]()'''
|Hides the title sequence menu.
:*Hides the title sequence menu.
|-


|[[IncrementSkill - Game|'''IncrementSkill'''(String ''asSkillName'')]]
:'''[[IncrementSkill - Game|IncrementSkill]](String ''asSkillName'')'''
|Advances the provided Skill by the one point (for the player only).
:*Advances the provided Skill by the one point (for the player only).
|-


|[[IncrementSkillBy - Game|'''IncrementSkillBy'''(String ''asSkillName'', Int ''aiCount'')]]
:'''[[IncrementSkillBy - Game|IncrementSkillBy]](String ''asSkillName'', Int ''aiCount'')'''
|Advances the provided Skill by the given number of points (for the player only).
:*Advances the provided Skill by the given number of points (for the player only).
|-


|[[IncrementStat - Game|'''IncrementStat'''(String ''asStatName'', Int ''aiModAmount'')]]
:'''[[IncrementStat - Game|IncrementStat]](String ''asStatName'', Int ''aiModAmount'')'''
|Modifies the specified MiscStat by the given amount
:*Modifies the specified MiscStat by the given amount
|-


|[[IsActivateControlsEnabled - Game|Bool '''IsActivateControlsEnabled'''()]]
:'''Bool [[IsActivateControlsEnabled - Game|IsActivateControlsEnabled]]()'''
|Are the activation controls enabled?
:*Are the activation controls enabled?
|-


|[[IsCamSwitchControlsEnabled - Game|Bool '''IsCamSwitchControlsEnabled'''()]]
:'''Bool [[IsCamSwitchControlsEnabled - Game|IsCamSwitchControlsEnabled]]()'''
|Are the camera switch controls enabled?
:*Are the camera switch controls enabled?
|-


|[[IsFastTravelEnabled - Game|Bool '''IsFastTravelEnabled'''()]]
:'''Bool [[IsFastTravelEnabled - Game|IsFastTravelEnabled]]()'''
|Is fast travel enabled?
:*Is fast travel enabled?
|-


|[[IsFastTravelControlsEnabled - Game|Bool '''IsFastTravelControlsEnabled'''()]]
:'''Bool [[IsFastTravelControlsEnabled - Game|IsFastTravelControlsEnabled]]()'''
|Are fast travel controls enabled?
:*Are fast travel controls enabled?
|-


|[[IsFightingControlsEnabled - Game|Bool '''IsFightingControlsEnabled'''()]]
:'''Bool [[IsFightingControlsEnabled - Game|IsFightingControlsEnabled]]()'''
|Are the fighting controls enabled?
:*Are the fighting controls enabled?
|-


|[[IsJournalControlsEnabled - Game|Bool '''IsJournalControlsEnabled'''()]]
:'''Bool [[IsJournalControlsEnabled - Game|IsJournalControlsEnabled]]()'''
|Are the journal menu controls enabled?
:*Are the journal menu controls enabled?
|-


|[[IsLookingControlsEnabled - Game|Bool '''IsLookingControlsEnabled'''()]]
:'''Bool [[IsLookingControlsEnabled - Game|IsLookingControlsEnabled]]()'''
|Are the looking controls enabled?
:*Are the looking controls enabled?
|-


|[[IsMenuControlsEnabled - Game|Bool '''IsMenuControlsEnabled'''()]]
:'''Bool [[IsMenuControlsEnabled - Game|IsMenuControlsEnabled]]()'''
|Are the menu controls enabled?
:*Are the menu controls enabled?
|-


|[[IsMovementControlsEnabled - Game|Bool '''IsMovementControlsEnabled'''()]]
:'''Bool [[IsMovementControlsEnabled - Game|IsMovementControlsEnabled]]()'''
|Are the movement controls enabled?
:*Are the movement controls enabled?
|-


|[[IsPlayerSungazing - Game|Bool '''IsPlayerSungazing'''()]]
:'''Bool [[IsPlayerSungazing - Game|IsPlayerSungazing]]()'''
|Checks to the see if the player is looking directly at the sun.
:*Checks to the see if the player is looking directly at the sun.
|-


|[[IsSneakingControlsEnabled - Game|Bool '''IsSneakingControlsEnabled'''()]]
:'''Bool [[IsSneakingControlsEnabled - Game|IsSneakingControlsEnabled]]()'''
|Are the sneaking controls enabled?
:*Are the sneaking controls enabled?
|-


|[[IsWordUnlocked - Game|Bool '''IsWordUnlocked'''(WordOfPower ''akWord'')]]
:'''Bool [[IsWordUnlocked - Game|IsWordUnlocked]](WordOfPower ''akWord'')'''
|Is the word of power unlocked on the player?
:*Is the word of power unlocked on the player?
|-


|[[PlayBink - Game|'''PlayBink'''(String ''asFileName'', Bool ''abInterruptible'', Bool ''abMuteAudio'', Bool ''abMuteMusic'', Bool ''abLetterbox'')]]
:'''[[PlayBink - Game|PlayBink]](String ''asFileName'', Bool ''abInterruptible'', Bool ''abMuteAudio'', Bool ''abMuteMusic'', Bool ''abLetterbox'')'''
|Plays a bink video
:*Plays a bink video
|-


|[[PrecacheCharGen - Game|'''PrecacheCharGen'''()]]
:'''[[PrecacheCharGen - Game|PrecacheCharGen]]()'''
|Precaches all the data used by character gen to avoid hitches with file I/O.
:*Precaches all the data used by character gen to avoid hitches with file I/O.
|-


|[[PrecacheCharGenClear - Game|'''PrecacheCharGenClear'''()]]
:'''[[PrecacheCharGenClear - Game|PrecacheCharGenClear]]()'''
|Clears all the previously cached data used by character gen.
:*Clears all the previously cached data used by character gen.
|-


|[[QueryStat - Game|Int '''QueryStat'''(String ''asStat'')]]
:'''Int [[QueryStat - Game|QueryStat]](String ''asStat'')'''
|Queries the given stat and returns its value.
:*Queries the given stat and returns its value.
|-


|[[QuitToMainMenu - Game|'''QuitToMainMenu'''()]]
:'''[[QuitToMainMenu - Game|QuitToMainMenu]]()'''
|Forces the game back to the main menu.
:*Forces the game back to the main menu.
|-


|[[RemoveHavokConstraints - Game|Bool '''RemoveHavokConstraints'''(ObjectReference ''arFirstRef'', String ''arFirstRefNodeName'', ObjectReference ''arSecondRef'', String ''arSecondRefNodeName'')]]
:'''Bool [[RemoveHavokConstraints - Game|RemoveHavokConstraints]](ObjectReference ''arFirstRef'', String ''arFirstRefNodeName'', ObjectReference ''arSecondRef'', String ''arSecondRefNodeName'')'''
|Removes any constraint between two rigid bodies
:*Removes any constraint between two rigid bodies
|-


|[[RequestAutoSave - Game|'''RequestAutoSave'''()]]
:'''[[RequestAutoSave - Game|RequestAutoSave]]()'''
|Requests for an auto-save to be made.
:*Requests for an auto-save to be made.
|-


|[[RequestModel - Game|'''RequestModel'''(String ''asModelName'')]]
:'''[[RequestModel - Game|RequestModel]](String ''asModelName'')'''
|Requests the specified model.
:*Requests the specified model.
|-


|[[RequestSave - Game|'''RequestSave'''()]]
:'''[[RequestSave - Game|RequestSave]]()'''
|Requests for a normal save to be made.
:*Requests for a normal save to be made.
|-


|[[SendWereWolfTransformation - Game|'''SendWereWolfTransformation'''()]]
:'''[[SendWereWolfTransformation - Game|SendWereWolfTransformation]]()'''
|Finds an actor in high who can detect the player to call werewolf crime on the player
:*Finds an actor in high who can detect the player to call werewolf crime on the player
|-


|[[ServeTime - Game|'''ServeTime'''()]]
:'''[[ServeTime - Game|ServeTime]]()'''
|Has the player serve their jail time.
:*Has the player serve their jail time.
|-


|[[SetAllowFlyingMountLandingRequests - Game|'''SetAllowFlyingMountLandingRequests'''(Bool ''abAllow'')]]
:'''[[SetAllowFlyingMountLandingRequests - Game|SetAllowFlyingMountLandingRequests]](Bool ''abAllow'')'''
|Allow or disallow the player requests to have a flying mount land.
:*Allow or disallow the player requests to have a flying mount land.
|-


|[[SetBeastForm - Game|'''SetBeastForm'''(Bool ''abEntering'')]]
:'''[[SetBeastForm - Game|SetBeastForm]](Bool ''abEntering'')'''
|Flags the player as being in/out of "beast form".
:*Flags the player as being in/out of "beast form".
|-


|[[SetCameraTarget - Game|'''SetCameraTarget'''(Actor ''arTarget'')]]
:'''[[SetCameraTarget - Game|SetCameraTarget]](Actor ''arTarget'')'''
|Sets the camera target actor
:*Sets the camera target actor
|-


|[[SetHudCartMode - Game|'''SetHudCartMode'''(Bool ''abSetCartMode'')]]
:'''[[SetHudCartMode - Game|SetHudCartMode]](Bool ''abSetCartMode'')'''
|Flags the HUD as being in "cart mode" or not.
:*Flags the HUD as being in "cart mode" or not.
|-


|[[SetInChargen - Game|'''SetInChargen'''(Bool ''abDisableSaving'', Bool ''abDisableWaiting'', Bool ''abShowControlsDisabledMessage'')]]
:'''[[SetInChargen - Game|SetInChargen]](Bool ''abDisableSaving'', Bool ''abDisableWaiting'', Bool ''abShowControlsDisabledMessage'')'''
|Enable/disable various functionality which we want in chargen.
:*Enable/disable various functionality which we want in chargen.
|-


|[[SetPlayerAIDriven - Game|'''SetPlayerAIDriven'''(Bool ''abAIDriven'')]]
:'''[[SetPlayerAIDriven - Game|SetPlayerAIDriven]](Bool ''abAIDriven'')'''
|Enables or disables the AI driven flag on the player.
:*Enables or disables the AI driven flag on the player.
|-


|[[SetPlayerReportCrime - Game|'''SetPlayerReportCrime'''(Bool ''abReportCrime'')]]
:'''[[SetPlayerReportCrime - Game|SetPlayerReportCrime]](Bool ''abReportCrime'')'''
|Set the state of the player as an actor who commits crimes
:*Set the state of the player as an actor who commits crimes
|-


|[[SetSittingRotation - Game|'''SetSittingRotation'''(Float ''afValue'')]]
:'''[[SetSittingRotation - Game|SetSittingRotation]](Float ''afValue'')'''
|Set the player's sitting camera offset rotation.
:*Set the player's sitting camera offset rotation.
|-


|[[SetSunGazeImageSpaceModifier - Game|'''SetSunGazeImageSpaceModifier'''(ImageSpaceModifier ''apImod'')]]
:'''[[SetSunGazeImageSpaceModifier - Game|SetSunGazeImageSpaceModifier]](ImageSpaceModifier ''apImod'')'''
|Will cause the specified ImageSpace Modifier to be triggered when the player begins looking at the sun
:*Will cause the specified ImageSpace Modifier to be triggered when the player begins looking at the sun
|-


|[[ShakeCamera - Game|'''ShakeCamera'''(ObjectReference ''akSource'', Float ''afStrength'')]]
:'''[[ShakeCamera - Game|ShakeCamera]](ObjectReference ''akSource'', Float ''afStrength'')'''
|Shakes the camera from the specified location with the specified strength.
:*Shakes the camera from the specified location with the specified strength.
|-


|[[ShakeController - Game|'''ShakeController'''(Float ''afLeftStrength'', Float ''afRightStrength'', Float ''afDuration'')]]
:'''[[ShakeController - Game|ShakeController]](Float ''afLeftStrength'', Float ''afRightStrength'', Float ''afDuration'')'''
|Shakes the controller for the specified amount of time.
:*Shakes the controller for the specified amount of time.
|-


|[[ShowFirstPersonGeometry - Game|'''ShowFirstPersonGeometry'''(Bool ''abShow'')]]
:'''[[ShowFirstPersonGeometry - Game|ShowFirstPersonGeometry]](Bool ''abShow'')'''
|Shows or hides the first-person geometry
:*Shows or hides the first-person geometry
|-


|[[ShowLimitedRaceMenu - Game|'''ShowLimitedRaceMenu'''()]]
:'''[[ShowLimitedRaceMenu - Game|ShowLimitedRaceMenu]]()'''
|Shows the race/sex change menu, but without the ability to change race or sex.
:*Shows the race/sex change menu, but without the ability to change race or sex.
|-


|[[ShowRaceMenu - Game|'''ShowRaceMenu'''()]]
:'''[[ShowRaceMenu - Game|ShowRaceMenu]]()'''
|Shows the race/sex change menu.
:*Shows the race/sex change menu.
|-


|[[ShowTitleSequenceMenu - Game|'''ShowTitleSequenceMenu'''()]]
:'''[[ShowTitleSequenceMenu - Game|ShowTitleSequenceMenu]]()'''
|Shows the title sequence menu.
:*Shows the title sequence menu.
|-


|[[ShowTrainingMenu - Game|'''ShowTrainingMenu'''(Actor ''aActor'')]]
:'''[[ShowTrainingMenu - Game|ShowTrainingMenu]](Actor ''aActor'')'''
|Shows the training menu provided by actor parameter.
:*Shows the training menu provided by actor parameter.
|-


|[[StartTitleSequence - Game|'''StartTitleSequence'''(String ''asSequenceName'')]]
:'''[[StartTitleSequence - Game|StartTitleSequence]](String ''asSequenceName'')'''
|Plays the specified sequence in the title menu.
:*Plays the specified sequence in the title menu.
|-


|[[TeachWord - Game|'''TeachWord'''(WordOfPower ''akWord'')]]
:'''[[TeachWord - Game|TeachWord]](WordOfPower ''akWord'')'''
|Teaches the specified [[WordOfPower Script|WordOfPower]] to the player
:*Teaches the specified [[WordOfPower Script|WordOfPower]] to the player
|-


|[[TriggerScreenBlood - Game|'''TriggerScreenBlood'''(Int ''aiValue'')]]
:'''[[TriggerScreenBlood - Game|TriggerScreenBlood]](Int ''aiValue'')'''
|Trigger on-screen blood splatter.
:*Trigger on-screen blood splatter.
|-


|[[UnlockWord - Game|'''UnlockWord'''(WordOfPower ''akWord'')]]
:'''[[UnlockWord - Game|UnlockWord]](WordOfPower ''akWord'')'''
|Unlocks the specified [[WordOfPower Script|WordOfPower]] so the player can use it
:*Unlocks the specified [[WordOfPower Script|WordOfPower]] so the player can use it
|-


|[[UsingGamepad - Game|Bool '''UsingGamepad'''()]]
:'''Bool [[UsingGamepad - Game|UsingGamepad]]()'''
|Returns whether the player is using a gamepad or not.
:*Returns whether the player is using a gamepad or not.
|-


|}


== SKSE Global Functions ==
== SKSE Global Functions ==


{|class="wikitable" width =100%
:'''Int [[GetPerkPoints - Game|GetPerkPoints]]()'''
!style="text-align:left;"|Function
:*Returns the number of perk points available to the player.
!style="text-align:left;"|Description
|-
|[[AddAchievement - Game|'''AddAchievement'''(Int ''aiAchievementID'')]]
|Adds the specified achievement/trophy to the player's gamer profile.
|-
 
|[[AddPerkPoints - Game|'''AddPerkPoints'''(Int ''aiPerkPoints'')]]
|Adds the given number of perk points to the player. Clamped at 255.
|-
 
|[[AdvanceSkill - Game|'''AdvanceSkill'''(String ''asSkillName'', Float ''afMagnitude'')]]
|Advance the given skill on the player by the provided amount of skill usage
|-
 
|[[AddHavokBallAndSocketConstraint - Game|Bool '''AddHavokBallAndSocketConstraint'''(ObjectReference ''arRefA'', String ''arRefANode'', ObjectReference ''arRefB'', String ''arRefBNode'', Float ''afRefALocalOffsetX'', Float ''afRefALocalOffsetY'', Float ''afRefALocalOffsetZ'', Float ''afRefBLocalOffsetX'', Float ''afRefBLocalOffsetY'', Float ''afRefBLocalOffsetZ'')]]
|Adds a ball-and-socket constraint between two rigid bodies, identified by their ref and node names
|-
 
|[[CalculateFavorCost - Game|Int '''CalculateFavorCost'''(Int ''aiFavorPrice'')]]
|Calculates how many points the player would have to pay for a favor of the specified price.
|-
 
|[[ClearPrison - Game|'''ClearPrison'''()]]
|Clears all Prison variables on the PlayerCharacter so the game will know he is out of prison.
|-
 
|[[ClearTempEffects - Game|'''ClearTempEffects'''()]]
|Clears all temp effects (such as terrain effects) in the game.
|-
 
|[[DisablePlayerControls - Game|'''DisablePlayerControls'''(Bool ''abMovement'', Bool ''abFighting'', Bool ''abCamSwitch'', Bool ''abLooking'', Bool ''abSneaking'', Bool ''abMenu'', Bool ''abActivate'', Bool ''abJournalTabs'', Int ''aiDisablePOVType'')]]
|Disables the specified player controls.
|-
 
|[[EnableFastTravel - Game|'''EnableFastTravel'''(Bool ''abEnable'')]]
|Enables or disables the player's ability to fast travel.
|-
 
|[[EnablePlayerControls - Game|'''EnablePlayerControls'''(Bool ''abMovement'', Bool ''abFighting'', Bool ''abCamSwitch'', Bool ''abLooking'', Bool ''abSneaking'', Bool ''abMenu'', Bool ''abActivate'', Bool ''abJournalTabs'', Int ''aiDisablePOVType'')]]
|Enables the specified player controls.
|-
 
|[[FadeOutGame - Game|'''FadeOutGame'''(Bool ''abFadingOut'', Bool ''abBlackFade'', Float ''afSecsBeforeFade'', Float ''afFadeDuration'')]]
|Fades the game in and out with the specified parameters.
|-
 
|[[FastTravel - Game|'''FastTravel'''(ObjectReference ''akDestination'')]]
|Fast-travels the player to the specified object's location.
|-
 
|[[FindClosestActor - Game|Actor '''FindClosestActor'''(Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
|Finds the closest actor within a given radius of a location
|-
 
|[[FindClosestActorFromRef - Game|Actor '''FindClosestActorFromRef'''(ObjectReference ''arCenter'', Float ''afRadius'')]]
|Finds the closest actor within a given radius of a reference
|-
 
|[[FindClosestReferenceOfAnyTypeInList - Game|ObjectReference '''FindClosestReferenceOfAnyTypeInList'''(FormList ''arBaseObjects'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
|Finds the closest reference of any of the base objects in the list within a given radius of a location
|-
 
|[[FindClosestReferenceOfAnyTypeInListFromRef - Game|ObjectReference '''FindClosestReferenceOfAnyTypeInListFromRef'''(FormList ''arBaseObjects'', ObjectReference ''arCenter'', Float ''afRadius'')]]
|Finds the closest reference of any of the base objects in the list within a given radius of a reference
|-
 
|[[FindClosestReferenceOfType - Game|ObjectReference '''FindClosestReferenceOfType'''(Form ''arBaseObject'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
|Finds the closest reference of a given base object within a given radius of a location
|-
 
|[[FindClosestReferenceOfTypeFromRef - Game|ObjectReference '''FindClosestReferenceOfTypeFromRef'''(Form ''arBaseObject'', ObjectReference ''arCenter'', Float ''afRadius'')]]
|Finds the closest reference of a given base object within a given radius of a reference
|-
 
|[[FindRandomActor - Game|Actor '''FindRandomActor'''(Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
|Finds a random actor within a given radius of a location
|-
 
|[[FindRandomActorFromRef - Game|Actor '''FindRandomActorFromRef'''(ObjectReference ''arCenter'', Float ''afRadius'')]]
|Finds a random actor within a given radius of a reference
|-
 
|[[FindRandomReferenceOfAnyTypeInList - Game|ObjectReference '''FindRandomReferenceOfAnyTypeInList'''(FormList ''arBaseObjects'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
|Finds a random reference of any of the base objects in the list within a given radius of a location
|-
 
|[[FindRandomReferenceOfAnyTypeInListFromRef - Game|ObjectReference '''FindRandomReferenceOfAnyTypeInListFromRef'''(FormList ''arBaseObjects'', ObjectReference ''arCenter'', Float ''afRadius'')]]
|Finds a random reference of any of the base objects in the list within a given radius of a reference
|-
 
|[[FindRandomReferenceOfType - Game|ObjectReference '''FindRandomReferenceOfType'''(Form ''arBaseObject'', Float ''afX'', Float ''afY'', Float ''afZ'', Float ''afRadius'')]]
|Finds a random reference of a given base object within a given radius of a location
|-
 
|[[FindRandomReferenceOfTypeFromRef - Game|ObjectReference '''FindRandomReferenceOfTypeFromRef'''(Form ''arBaseObject'', ObjectReference ''arCenter'', Float ''afRadius'')]]
|Finds a random reference of a given base object within a given radius of a reference
|-
 
|[[ForceFirstPerson - Game|'''ForceFirstPerson'''()]]
|Forces the player camera into 1st-person.
|-
 
|[[ForceThirdPerson - Game|'''ForceThirdPerson'''()]]
|Forces the player camera into 3rd-person.
|-
 
|[[GetForm - Game|Form '''GetForm'''(Int ''aiFormID'')]]
|Obtains a [[Form Script|Form]] from the game by its form ID number.
|-
 
|[[GetFormFromFile - Game|Form '''GetFormFromFile'''(Int ''aiFormID'', String ''asFilename'')]]
|Obtains the form specified by its form ID number which originated in the specified file.
|-
 
|[[GetGameSettingFloat - Game|Float '''GetGameSettingFloat'''(String ''asGameSetting'')]]
|Obtains the value of a float game setting.
|-
 
|[[GetGameSettingInt - Game|Float '''GetGameSettingInt'''(String ''asGameSetting'')]]
|Obtains the value of an int game setting.
|-
 
|[[GetGameSettingString - Game|Float '''GetGameSettingString'''(String ''asGameSetting'')]]
|Obtains the value of a string game setting.
|-
 
|[[GetPlayer - Game|Actor '''GetPlayer'''()]]
|Obtains the [[Actor Script|Actor]] that represents the player.
|-
 
|[[GetPlayerGrabbedRef - Game|ObjectReference '''GetPlayerGrabbedRef'''()]]
|Obtains the [[ObjectReference Script|ObjectReference]] the player is currently grabbing.
|-
 
|[[GetPlayersLastRiddenHorse - Game|Actor '''GetPlayersLastRiddenHorse'''()]]
|Gets this actors last ridden horse if it is the player. Returns None if player has not ridden a horse is not the player.
|-
 
|[[GetRealHoursPassed - Game|Float '''GetRealHoursPassed'''()]]
|Returns the number of real-life hours that have passed playing the game.
|-
 
|[[GetSunPositionX - Game|Float '''GetSunPositionX'''()]]
|Gets the X position of the sun.
|-
 
|[[GetSunPositionY - Game|Float '''GetSunPositionY'''()]]
|Gets the Y position of the sun.
|-
 
|[[GetSunPositionZ - Game|Float '''GetSunPositionZ'''()]]
|Gets the Z position of the sun.
|-
 
|[[HideTitleSequenceMenu - Game|'''HideTitleSequenceMenu'''()]]
|Hides the title sequence menu.
|-
 
|[[IncrementSkill - Game|'''IncrementSkill'''(String ''asSkillName'')]]
|Advances the provided Skill by the one point (for the player only).
|-
 
|[[IncrementSkillBy - Game|'''IncrementSkillBy'''(String ''asSkillName'', Int ''aiCount'')]]
|Advances the provided Skill by the given number of points (for the player only).
|-
 
|[[IncrementStat - Game|'''IncrementStat'''(String ''asStatName'', Int ''aiModAmount'')]]
|Modifies the specified MiscStat by the given amount
|-
 
|[[IsActivateControlsEnabled - Game|Bool '''IsActivateControlsEnabled'''()]]
|Are the activation controls enabled?
|-
 
|[[IsCamSwitchControlsEnabled - Game|Bool '''IsCamSwitchControlsEnabled'''()]]
|Are the camera switch controls enabled?
|-
 
|[[IsFastTravelEnabled - Game|Bool '''IsFastTravelEnabled'''()]]
|Is fast travel enabled?
|-
 
|[[IsFastTravelControlsEnabled - Game|Bool '''IsFastTravelControlsEnabled'''()]]
|Are fast travel controls enabled?
|-
 
|[[IsFightingControlsEnabled - Game|Bool '''IsFightingControlsEnabled'''()]]
|Are the fighting controls enabled?
|-
 
|[[IsJournalControlsEnabled - Game|Bool '''IsJournalControlsEnabled'''()]]
|Are the journal menu controls enabled?
|-
 
|[[IsLookingControlsEnabled - Game|Bool '''IsLookingControlsEnabled'''()]]
|Are the looking controls enabled?
|-
 
|[[IsMenuControlsEnabled - Game|Bool '''IsMenuControlsEnabled'''()]]
|Are the menu controls enabled?
|-
 
|[[IsMovementControlsEnabled - Game|Bool '''IsMovementControlsEnabled'''()]]
|Are the movement controls enabled?
|-
 
|[[IsPlayerSungazing - Game|Bool '''IsPlayerSungazing'''()]]
|Checks to the see if the player is looking directly at the sun.
|-
 
|[[IsSneakingControlsEnabled - Game|Bool '''IsSneakingControlsEnabled'''()]]
|Are the sneaking controls enabled?
|-
 
|[[IsWordUnlocked - Game|Bool '''IsWordUnlocked'''(WordOfPower ''akWord'')]]
|Is the word of power unlocked on the player?
|-
 
|[[PlayBink - Game|'''PlayBink'''(String ''asFileName'', Bool ''abInterruptible'', Bool ''abMuteAudio'', Bool ''abMuteMusic'', Bool ''abLetterbox'')]]
|Plays a bink video
|-
 
|[[PrecacheCharGen - Game|'''PrecacheCharGen'''()]]
|Precaches all the data used by character gen to avoid hitches with file I/O.
|-
 
|[[PrecacheCharGenClear - Game|'''PrecacheCharGenClear'''()]]
|Clears all the previously cached data used by character gen.
|-
 
|[[QueryStat - Game|Int '''QueryStat'''(String ''asStat'')]]
|Queries the given stat and returns its value.
|-
 
|[[QuitToMainMenu - Game|'''QuitToMainMenu'''()]]
|Forces the game back to the main menu.
|-
 
|[[RemoveHavokConstraints - Game|Bool '''RemoveHavokConstraints'''(ObjectReference ''arFirstRef'', String ''arFirstRefNodeName'', ObjectReference ''arSecondRef'', String ''arSecondRefNodeName'')]]
|Removes any constraint between two rigid bodies
|-
 
|[[RequestAutoSave - Game|'''RequestAutoSave'''()]]
|Requests for an auto-save to be made.
|-
 
|[[RequestModel - Game|'''RequestModel'''(String ''asModelName'')]]
|Requests the specified model.
|-
 
|[[RequestSave - Game|'''RequestSave'''()]]
|Requests for a normal save to be made.
|-


|[[SendWereWolfTransformation - Game|'''SendWereWolfTransformation'''()]]
:'''[[SetPerkPoints - Game|SetPerkPoints]](Int ''perkPoints'')'''
|Finds an actor in high who can detect the player to call werewolf crime on the player
:*Sets the number of perk points available to the player.
|-


|[[ServeTime - Game|'''ServeTime'''()]]
:'''[[ModPerkPoints - Game|ModPerkPoints]](Int ''perkPoints'')'''
|Has the player serve their jail time.
:*Changes the number of perk points available to the player by the specified amount.
|-


|[[SetAllowFlyingMountLandingRequests - Game|'''SetAllowFlyingMountLandingRequests'''(Bool ''abAllow'')]]
:'''Int [[GetModCount - Game|GetModCount]]()'''
|Allow or disallow the player requests to have a flying mount land.
:*Returns the number of mods currently active.
|-


|[[SetBeastForm - Game|'''SetBeastForm'''(Bool ''abEntering'')]]
:'''Int [[GetModByName - Game|GetModByName]](String ''name'')'''
|Flags the player as being in/out of "beast form".
:*Returns the index of the specified mod.
|-


|[[SetCameraTarget - Game|'''SetCameraTarget'''(Actor ''arTarget'')]]
:'''String [[GetModName - Game|GetModName]](Int ''modIndex'')'''
|Sets the camera target actor
:*Returns the mods name at the specified index.
|-


|[[SetHudCartMode - Game|'''SetHudCartMode'''(Bool ''abSetCartMode'')]]
:'''String [[GetModAuthor - Game|GetModAuthor]](Int ''modIndex'')'''
|Flags the HUD as being in "cart mode" or not.
:*Returns the specified mod's author.
|-


|[[SetInChargen - Game|'''SetInChargen'''(Bool ''abDisableSaving'', Bool ''abDisableWaiting'', Bool ''abShowControlsDisabledMessage'')]]
:'''String [[GetModDescription - Game|GetModDescription]](Int ''modIndex'')'''
|Enable/disable various functionality which we want in chargen.
:*Returns the specified mod's description.
|-


|[[SetPlayerAIDriven - Game|'''SetPlayerAIDriven'''(Bool ''abAIDriven'')]]
:'''Int [[GetModDependencyCount - Game|GetModDependencyCount]](Int ''modIndex'')'''
|Enables or disables the AI driven flag on the player.
:*Returns the dependency count of the specified mod.
|-


|[[SetPlayerReportCrime - Game|'''SetPlayerReportCrime'''(Bool ''abReportCrime'')]]
:'''Int [[GetNthModDependency - Game|GetNthModDependency]](Int ''modIndex'', Int ''n'')'''
|Set the state of the player as an actor who commits crimes
:*Returns the mod index of the specified Dependency.
|-


|[[SetSittingRotation - Game|'''SetSittingRotation'''(Float ''afValue'')]]
:'''Bool [[IsPluginInstalled - Game|IsPluginInstalled]](String ''name'')'''
|Set the player's sitting camera offset rotation.
:*Returns if the named mod is found in the load order.
|-


|[[SetSunGazeImageSpaceModifier - Game|'''SetSunGazeImageSpaceModifier'''(ImageSpaceModifier ''apImod'')]]
:'''Int [[GetLightModCount - Game|GetLightModCount]]()'''
|Will cause the specified ImageSpace Modifier to be triggered when the player begins looking at the sun
:*Returns the number of light mods currently active.
|-


|[[ShakeCamera - Game|'''ShakeCamera'''(ObjectReference ''akSource'', Float ''afStrength'')]]
:'''Int [[GetLightModByName - Game|GetLightModByName]](String ''name'')'''
|Shakes the camera from the specified location with the specified strength.
:*Returns the index of the specified light mod.
|-


|[[ShakeController - Game|'''ShakeController'''(Float ''afLeftStrength'', Float ''afRightStrength'', Float ''afDuration'')]]
:'''String [[GetLightModName - Game|GetLightModName]](Int ''modIndex'')'''
|Shakes the controller for the specified amount of time.
:*Returns the light mod's name at the specified index.
|-


|[[ShowFirstPersonGeometry - Game|'''ShowFirstPersonGeometry'''(Bool ''abShow'')]]
:'''String [[GetLightModAuthor - Game|GetLightModAuthor]](Int ''modIndex'')'''
|Shows or hides the first-person geometry
:*Returns the specified light mod's author.
|-


|[[ShowLimitedRaceMenu - Game|'''ShowLimitedRaceMenu'''()]]
:'''String [[GetLightModDescription - Game|GetLightModDescription]](Int ''modIndex'')'''
|Shows the race/sex change menu, but without the ability to change race or sex.
:*Returns the specified light mod's description.
|-


|[[ShowRaceMenu - Game|'''ShowRaceMenu'''()]]
:'''Int [[GetLightModDependencyCount - Game|GetLightModDependencyCount]](Int ''modIndex'')'''
|Shows the race/sex change menu.
:*Returns the dependency count of the specified light mod.
|-


|[[ShowTitleSequenceMenu - Game|'''ShowTitleSequenceMenu'''()]]
:'''Int [[GetNthLightModDependency - Game|GetNthLightModDependency]](Int ''modIndex'', Int ''n'')'''
|Shows the title sequence menu.
:*Returns the mod index of the specified Dependency.
|-


|[[ShowTrainingMenu - Game|'''ShowTrainingMenu'''(Actor ''aActor'')]]
:'''[[SetGameSettingFloat - Game|SetGameSettingFloat]](String ''setting'', Float ''value'')'''
|Shows the training menu provided by actor parameter.
:*Changes the value of float Game Settings.
|-


|[[StartTitleSequence - Game|'''StartTitleSequence'''(String ''asSequenceName'')]]
:'''[[SetGameSettingInt - Game|SetGameSettingInt]](String ''setting'', Int ''value'')'''
|Plays the specified sequence in the title menu.
:*Changes the value of integer Game Settings.
|-


|[[TeachWord - Game|'''TeachWord'''(WordOfPower ''akWord'')]]
:'''[[SetGameSettingBool - Game|SetGameSettingBool]](String ''setting'', Bool ''value'')'''
|Teaches the specified [[WordOfPower Script|WordOfPower]] to the player
:*Changes the value of boolean Game Settings.
|-


|[[TriggerScreenBlood - Game|'''TriggerScreenBlood'''(Int ''aiValue'')]]
:'''[[SetGameSettingString - Game|SetGameSettingString]](String ''setting'', String ''value'')'''
|Trigger on-screen blood splatter.
:*Changes the value of string Game Settings.
|-


|[[UnlockWord - Game|'''UnlockWord'''(WordOfPower ''akWord'')]]
:'''[[SaveGame - Game|SaveGame]](String ''name'')'''
|Unlocks the specified [[WordOfPower Script|WordOfPower]] so the player can use it
:*Saves the game with the specified name.
|-


|[[UsingGamepad - Game|Bool '''UsingGamepad'''()]]
:'''[[LoadGame - Game|LoadGame]](String ''name'')'''
|Returns whether the player is using a gamepad or not.
:*Loads the save with the specified name.
|-


|[[GetPerkPoints - Game|Int '''GetPerkPoints'''()]]
:'''Int [[GetNumTintMasks - Game|GetNumTintMasks]]()'''
|Returns the number of perk points available to the player.
:*Returns the total number of tints for the player.
|-


|[[SetPerkPoints - Game|'''SetPerkPoints'''(Int ''perkPoints'')]]
:'''Int [[GetNthTintMaskColor - Game|GetNthTintMaskColor]](Int ''n'')'''
|Sets the number of perk points available to the player.
:*Returns the color of the Nth tint mask.
|-


|[[ModPerkPoints - Game|'''ModPerkPoints'''(Int ''perkPoints'')]]
:'''Int [[GetNthTintMaskType - Game|GetNthTintMaskType]](Int ''n'')'''
|Changes the number of perk points available to the player by the specified amount.
:*Returns the type of the Nth tint mask.
|-


|[[SetGameSettingBool - Game|'''SetGameSettingBool'''(String ''setting'', Bool ''value'')]]
:'''Int [[SetNthTintMaskColor - Game|SetNthTintMaskColor]](Int ''n'', Int ''color'')'''
|Changes the value of boolean Game Settings.
:*Sets the color of the Nth tint mask.
|-


|[[SetGameSettingInt - Game|'''SetGameSettingInt'''(String ''setting'', Int ''value'')]]
:'''String [[GetNthTintMaskTexturePath - Game|GetNthTintMaskTexturePath]](Int ''n'')'''
|Changes the value of integer Game Settings.
:*Returns the texture path of the Nth tint mask.
|-


|[[SetGameSettingFloat - Game|'''SetGameSettingFloat'''(String ''setting'', Float ''value'')]]
:'''[[SetNthTintMaskTexturePath - Game|SetNthTintMaskTexturePath]](String ''path'', Int ''n'')'''
|Changes the value of float Game Settings.
:*Sets the texturepath of the Nth tint mask.
|-


|[[SetGameSettingString - Game|'''SetGameSettingString'''(String ''setting'', String ''value'')]]
:'''Int [[GetNumTintsByType - Game|GetNumTintsByType]](Int ''type'')'''
|Changes the value of string Game Settings.
:*Returns how many indexes there are for this type.
|-


|[[GetModCount - Game|Int '''GetModCount'''()]]
:'''Int [[GetTintMaskColor - Game|GetTintMaskColor]](Int ''type'', Int ''index'')'''
|Returns the number of mods currently active.
:*Returns the color for the particular tintMask type and index.
|-


|[[GetModName - Game|String '''GetModName'''(Int ''modIndex'')]]
:'''[[SetTintMaskColor - Game|SetTintMaskColor]](Int ''color'', Int ''type'', Int ''index'')'''
|Returns the mods name at the specified index.
:*Sets the tintMask color for the particular type and index.
|-


|[[GetModAuthor - Game|String '''GetModAuthor'''(Int ''modIndex'')]]
:'''String [[GetTintMaskTexturePath - Game|GetTintMaskTexturePath]](Int ''type'', Int ''index'')'''
|Returns the specified mod's author.
:*Returns the tintMask texture for the particular type and index.
|-


|[[GetModDescription - Game|String '''GetModDescription'''(Int ''modIndex'')]]
:'''[[SetTintMaskTexturePath - Game|SetTintMaskTexturePath]](String ''path'', Int ''type'', Int ''index'')'''
|Returns the specified mod's description.
:*Sets the tintMask texture for the particular type and index.
|-


|[[GetModDependencyCount - Game|Int '''GetModDependencyCount'''(Int ''modIndex'')]]
:'''[[UpdateTintMaskColors - Game|UpdateTintMaskColors]]()'''
|Returns the dependency count of the specified mod.
:*Updates Tint Mask colors without updating the entire model.
|-


|[[GetNthModDependency - Game|Int '''GetNthModDependency'''(Int ''modIndex'', Int ''n'')]]
:'''[[UpdateHairColor - Game|UpdateHairColor]]()'''
|Returns the mod index of the specified Dependency.
:*Instantly updates the player's hair color.
|-


|[[GetCameraState - Game|Int '''GetCameraState'''()]]
:'''Int [[GetCameraState - Game|GetCameraState]]()'''
|Returns the character's current camera state.(0 - first person;1 - auto vanity;2 - VATS;3 - free;4 - iron sights;5 - furniture;6 - transition;7 - tweenmenu;8 - third person 1;9 - third person 2;10 - horse;11 - bleedout;12 - dragon)
:*Returns the character's current camera state.
|-


|[[SaveGame - Game|'''SaveGame'''(String ''name'')]]
:'''[[SetMiscStat - Game|SetMiscStat]](String ''name'', Int ''value'')'''
|Saves the game with the specified name.
:*Sets the Misc Stat to the specified value.
|-


|[[LoadGame - Game|'''LoadGame'''(String ''name'')]]
:'''[[SetPlayersLastRiddenHorse - Game|SetPlayersLastRiddenHorse]](Actor ''horse'')'''
|Loads the save with the specified name.
:*Sets the players last ridden horse, None will clear the last ridden horse.
|-


|[[GetNumTintMasks - Game|Int '''GetNumTintMasks'''()]]
:'''Int [[GetSkillLegendaryLevel - Game|GetSkillLegendaryLevel]](String ''actorValue'')'''
|Returns the total number of tints for the player.
:*Returns the legendary level for the skill. -1 indicates that the skill cannot have a legendary level. ''This is marked as deprecated in SKSE's Game.psc.''
|-


|[[GetNthTintMaskColor - Game|Int '''GetNthTintMaskColor'''(Int ''n'')]]
:'''[[SetSkillLegendaryLevel - Game|SetSkillLegendaryLevel]](String ''actorValue'', Int ''level'')'''
|Returns the color of the Nth tint mask.
:*Sets the legendary level for the skill. ''This is marked as deprecated in SKSE's Game.psc.''
|-


|[[GetNthTintMaskType - Game|Int '''GetNthTintMaskType'''(Int ''n'')]]
:'''Float [[GetPlayerExperience - Game|GetPlayerExperience]]()'''
|Returns the type of the Nth tint mask.
:*Returns the players experience for this level (not total experience).
|-


|[[SetNthTintMaskColor - Game|Int '''SetNthTintMaskColor'''(Int ''n'', Int ''color'')]]
:'''[[SetPlayerExperience - Game|SetPlayerExperience]](Float ''exp'')'''
|Sets the color of the Nth tint mask.
:*Sets the player's experience to the specified amount (This will not trigger a level up notification)
|-


|[[GetNthTintMaskTexturePath - Game|String '''GetNthTintMaskTexturePath'''(Int ''n'')]]
:'''Float [[GetExperienceForLevel - Game|GetExperienceForLevel]](Int ''currentLevel'')'''
|Returns the texture path of the Nth tint mask.
:*Calculates the experience required for the player to level-up at the specified level
|-


|[[SetNthTintMaskTexturePath - Game|'''SetNthTintMaskTexturePath'''(Int ''n'')]]
:'''Bool [[GetPlayerMovementMode - Game|GetPlayerMovementMode]]()'''
|Sets the texturepath of the Nth tint mask.
:*Returns true if in run mode, false if in walk mode. (This is only an indication of the control mode not if the player is actually running or walking.)
|-


|[[GetNumTintsByType - Game|Int '''GetNumTintsByType'''(Int ''type'')]]
:'''[[UpdateThirdPerson - Game|UpdateThirdPerson]]()'''
|Returns how many indexes there are for this type.
:*Updates the camera when changing shoulder positions.
|-


|[[GetTintMaskColor - Game|Int '''GetTintMaskColor'''(Int ''type'', Int ''index'')]]
:'''[[UnbindObjectHotkey - Game|UnbindObjectHotkey]](Int ''hotkey'')'''
|Returns the color for the particular tintMask type and index.
:*Unbinds a favorited item bound to the specified hotkey. (0-7 reflects keys 1-8)
|-


|[[SetTintMaskColor - Game|'''SetTintMaskColor'''(Int ''color'', Int ''type'', Int ''index'')]]
:'''Form [[GetHotkeyBoundObject - Game|GetHotkeyBoundObject]](Int ''hotkey'')'''
|Sets the tintMask color for the particular type and index
:*Returns the base form object that is bound to the specified hotkey.
|-


|[[UpdateHairColor - Game|'''UpdateHairColor'''()]]
:'''Bool [[IsObjectFavorited - Game|IsObjectFavorited]](Form ''form'')'''
|Instantly updates the player's hair color.
:*Returns whether the specified base form is favorited by the player.
|-


|[[GetSkillLegendaryLevel - Game|Int '''GetSkillLegendaryLevel'''(String ''actorValue'')]]
:'''Form [[GetFormEx - Game|GetFormEx]](Int ''formId'')'''
|Returns the legendary level for the skill
:*Performs the same function as [[GetForm - Game|GetForm]] but also works for form IDs greater than 0x80000000.
|-


|[[SetSkillLegendaryLevel - Game|'''SetSkillLegendaryLevel'''(String ''actorValue'', Int ''level'')]]
:'''[[SetPlayerLevel]](Int ''Level'')'''
|Sets the legendary level for the skill.
:*Sets the player's level.
|-


|}
:'''ObjectReference [[GetCurrentCrosshairRef]]()'''
:*Returns the current crosshair ref.


:'''ObjectReference [[GetCurrentConsoleRef]]()'''
:*Returns the currently selected ref in the console.
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]

Latest revision as of 06:36, 7 June 2020

Extends: None

Collection of game-specific global functions


Definition[edit | edit source]

ScriptName Game Hidden


Global Functions[edit | edit source]

AddAchievement(Int aiAchievementID)
  • Adds the specified achievement/trophy to the player's gamer profile.
AddPerkPoints(Int aiPerkPoints)
  • Adds the given number of perk points to the player. Clamped at 255.
AdvanceSkill(String asSkillName, Float afMagnitude)
  • Advance the given skill on the player by the provided amount of skill usage
Bool AddHavokBallAndSocketConstraint(ObjectReference arRefA, String arRefANode, ObjectReference arRefB, String arRefBNode, Float afRefALocalOffsetX, Float afRefALocalOffsetY, Float afRefALocalOffsetZ, Float afRefBLocalOffsetX, Float afRefBLocalOffsetY, Float afRefBLocalOffsetZ)
  • Adds a ball-and-socket constraint between two rigid bodies, identified by their ref and node names
Int CalculateFavorCost(Int aiFavorPrice)
  • Calculates how many points the player would have to pay for a favor of the specified price.
ClearPrison()
  • Clears all Prison variables on the PlayerCharacter so the game will know he is out of prison.
ClearTempEffects()
  • Clears all temp effects (such as terrain effects) in the game.
DisablePlayerControls(Bool abMovement, Bool abFighting, Bool abCamSwitch, Bool abLooking, Bool abSneaking, Bool abMenu, Bool abActivate, Bool abJournalTabs, Int aiDisablePOVType)
  • Disables the specified player controls.
EnableFastTravel(Bool abEnable)
  • Enables or disables the player's ability to fast travel.
EnablePlayerControls(Bool abMovement, Bool abFighting, Bool abCamSwitch, Bool abLooking, Bool abSneaking, Bool abMenu, Bool abActivate, Bool abJournalTabs, Int aiDisablePOVType)
  • Enables the specified player controls.
FadeOutGame(Bool abFadingOut, Bool abBlackFade, Float afSecsBeforeFade, Float afFadeDuration)
  • Fades the game in and out with the specified parameters.
FastTravel(ObjectReference akDestination)
  • Fast-travels the player to the specified object's location.
Actor FindClosestActor(Float afX, Float afY, Float afZ, Float afRadius)
  • Finds the closest actor within a given radius of a location
Actor FindClosestActorFromRef(ObjectReference arCenter, Float afRadius)
  • Finds the closest actor within a given radius of a reference
ObjectReference FindClosestReferenceOfAnyTypeInList(FormList arBaseObjects, Float afX, Float afY, Float afZ, Float afRadius)
  • Finds the closest reference of any of the base objects in the list within a given radius of a location
ObjectReference FindClosestReferenceOfAnyTypeInListFromRef(FormList arBaseObjects, ObjectReference arCenter, Float afRadius)
  • Finds the closest reference of any of the base objects in the list within a given radius of a reference
ObjectReference FindClosestReferenceOfType(Form arBaseObject, Float afX, Float afY, Float afZ, Float afRadius)
  • Finds the closest reference of a given base object within a given radius of a location
ObjectReference FindClosestReferenceOfTypeFromRef(Form arBaseObject, ObjectReference arCenter, Float afRadius)
  • Finds the closest reference of a given base object within a given radius of a reference
Actor FindRandomActor(Float afX, Float afY, Float afZ, Float afRadius)
  • Finds a random actor within a given radius of a location
Actor FindRandomActorFromRef(ObjectReference arCenter, Float afRadius)
  • Finds a random actor within a given radius of a reference
ObjectReference FindRandomReferenceOfAnyTypeInList(FormList arBaseObjects, Float afX, Float afY, Float afZ, Float afRadius)
  • Finds a random reference of any of the base objects in the list within a given radius of a location
ObjectReference FindRandomReferenceOfAnyTypeInListFromRef(FormList arBaseObjects, ObjectReference arCenter, Float afRadius)
  • Finds a random reference of any of the base objects in the list within a given radius of a reference
ObjectReference FindRandomReferenceOfType(Form arBaseObject, Float afX, Float afY, Float afZ, Float afRadius)
  • Finds a random reference of a given base object within a given radius of a location
ObjectReference FindRandomReferenceOfTypeFromRef(Form arBaseObject, ObjectReference arCenter, Float afRadius)
  • Finds a random reference of a given base object within a given radius of a reference
ForceFirstPerson()
  • Forces the player camera into 1st-person.
ForceThirdPerson()
  • Forces the player camera into 3rd-person.
Form GetForm(Int aiFormID)
  • Obtains a Form from the game by its form ID number.
Form GetFormFromFile(Int aiFormID, String asFilename)
  • Obtains the form specified by its form ID number which originated in the specified file.
Float GetGameSettingFloat(String asGameSetting)
  • Obtains the value of a float game setting.
Float GetGameSettingInt(String asGameSetting)
  • Obtains the value of an int game setting.
Float GetGameSettingString(String asGameSetting)
  • Obtains the value of a string game setting.
Actor GetPlayer()
  • Obtains the Actor that represents the player.
ObjectReference GetPlayerGrabbedRef()
Actor GetPlayersLastRiddenHorse()
  • Gets this actors last ridden horse if it is the player. Returns None if player has not ridden a horse is not the player.
Float GetRealHoursPassed()
  • Returns the number of real-life hours that have passed playing the game.
Float GetSunPositionX()
  • Gets the X position of the sun.
Float GetSunPositionY()
  • Gets the Y position of the sun.
Float GetSunPositionZ()
  • Gets the Z position of the sun.
HideTitleSequenceMenu()
  • Hides the title sequence menu.
IncrementSkill(String asSkillName)
  • Advances the provided Skill by the one point (for the player only).
IncrementSkillBy(String asSkillName, Int aiCount)
  • Advances the provided Skill by the given number of points (for the player only).
IncrementStat(String asStatName, Int aiModAmount)
  • Modifies the specified MiscStat by the given amount
Bool IsActivateControlsEnabled()
  • Are the activation controls enabled?
Bool IsCamSwitchControlsEnabled()
  • Are the camera switch controls enabled?
Bool IsFastTravelEnabled()
  • Is fast travel enabled?
Bool IsFastTravelControlsEnabled()
  • Are fast travel controls enabled?
Bool IsFightingControlsEnabled()
  • Are the fighting controls enabled?
Bool IsJournalControlsEnabled()
  • Are the journal menu controls enabled?
Bool IsLookingControlsEnabled()
  • Are the looking controls enabled?
Bool IsMenuControlsEnabled()
  • Are the menu controls enabled?
Bool IsMovementControlsEnabled()
  • Are the movement controls enabled?
Bool IsPlayerSungazing()
  • Checks to the see if the player is looking directly at the sun.
Bool IsSneakingControlsEnabled()
  • Are the sneaking controls enabled?
Bool IsWordUnlocked(WordOfPower akWord)
  • Is the word of power unlocked on the player?
PlayBink(String asFileName, Bool abInterruptible, Bool abMuteAudio, Bool abMuteMusic, Bool abLetterbox)
  • Plays a bink video
PrecacheCharGen()
  • Precaches all the data used by character gen to avoid hitches with file I/O.
PrecacheCharGenClear()
  • Clears all the previously cached data used by character gen.
Int QueryStat(String asStat)
  • Queries the given stat and returns its value.
QuitToMainMenu()
  • Forces the game back to the main menu.
Bool RemoveHavokConstraints(ObjectReference arFirstRef, String arFirstRefNodeName, ObjectReference arSecondRef, String arSecondRefNodeName)
  • Removes any constraint between two rigid bodies
RequestAutoSave()
  • Requests for an auto-save to be made.
RequestModel(String asModelName)
  • Requests the specified model.
RequestSave()
  • Requests for a normal save to be made.
SendWereWolfTransformation()
  • Finds an actor in high who can detect the player to call werewolf crime on the player
ServeTime()
  • Has the player serve their jail time.
SetAllowFlyingMountLandingRequests(Bool abAllow)
  • Allow or disallow the player requests to have a flying mount land.
SetBeastForm(Bool abEntering)
  • Flags the player as being in/out of "beast form".
SetCameraTarget(Actor arTarget)
  • Sets the camera target actor
SetHudCartMode(Bool abSetCartMode)
  • Flags the HUD as being in "cart mode" or not.
SetInChargen(Bool abDisableSaving, Bool abDisableWaiting, Bool abShowControlsDisabledMessage)
  • Enable/disable various functionality which we want in chargen.
SetPlayerAIDriven(Bool abAIDriven)
  • Enables or disables the AI driven flag on the player.
SetPlayerReportCrime(Bool abReportCrime)
  • Set the state of the player as an actor who commits crimes
SetSittingRotation(Float afValue)
  • Set the player's sitting camera offset rotation.
SetSunGazeImageSpaceModifier(ImageSpaceModifier apImod)
  • Will cause the specified ImageSpace Modifier to be triggered when the player begins looking at the sun
ShakeCamera(ObjectReference akSource, Float afStrength)
  • Shakes the camera from the specified location with the specified strength.
ShakeController(Float afLeftStrength, Float afRightStrength, Float afDuration)
  • Shakes the controller for the specified amount of time.
ShowFirstPersonGeometry(Bool abShow)
  • Shows or hides the first-person geometry
ShowLimitedRaceMenu()
  • Shows the race/sex change menu, but without the ability to change race or sex.
ShowRaceMenu()
  • Shows the race/sex change menu.
ShowTitleSequenceMenu()
  • Shows the title sequence menu.
ShowTrainingMenu(Actor aActor)
  • Shows the training menu provided by actor parameter.
StartTitleSequence(String asSequenceName)
  • Plays the specified sequence in the title menu.
TeachWord(WordOfPower akWord)
TriggerScreenBlood(Int aiValue)
  • Trigger on-screen blood splatter.
UnlockWord(WordOfPower akWord)
  • Unlocks the specified WordOfPower so the player can use it
Bool UsingGamepad()
  • Returns whether the player is using a gamepad or not.


SKSE Global Functions[edit | edit source]

Int GetPerkPoints()
  • Returns the number of perk points available to the player.
SetPerkPoints(Int perkPoints)
  • Sets the number of perk points available to the player.
ModPerkPoints(Int perkPoints)
  • Changes the number of perk points available to the player by the specified amount.
Int GetModCount()
  • Returns the number of mods currently active.
Int GetModByName(String name)
  • Returns the index of the specified mod.
String GetModName(Int modIndex)
  • Returns the mods name at the specified index.
String GetModAuthor(Int modIndex)
  • Returns the specified mod's author.
String GetModDescription(Int modIndex)
  • Returns the specified mod's description.
Int GetModDependencyCount(Int modIndex)
  • Returns the dependency count of the specified mod.
Int GetNthModDependency(Int modIndex, Int n)
  • Returns the mod index of the specified Dependency.
Bool IsPluginInstalled(String name)
  • Returns if the named mod is found in the load order.
Int GetLightModCount()
  • Returns the number of light mods currently active.
Int GetLightModByName(String name)
  • Returns the index of the specified light mod.
String GetLightModName(Int modIndex)
  • Returns the light mod's name at the specified index.
String GetLightModAuthor(Int modIndex)
  • Returns the specified light mod's author.
String GetLightModDescription(Int modIndex)
  • Returns the specified light mod's description.
Int GetLightModDependencyCount(Int modIndex)
  • Returns the dependency count of the specified light mod.
Int GetNthLightModDependency(Int modIndex, Int n)
  • Returns the mod index of the specified Dependency.
SetGameSettingFloat(String setting, Float value)
  • Changes the value of float Game Settings.
SetGameSettingInt(String setting, Int value)
  • Changes the value of integer Game Settings.
SetGameSettingBool(String setting, Bool value)
  • Changes the value of boolean Game Settings.
SetGameSettingString(String setting, String value)
  • Changes the value of string Game Settings.
SaveGame(String name)
  • Saves the game with the specified name.
LoadGame(String name)
  • Loads the save with the specified name.
Int GetNumTintMasks()
  • Returns the total number of tints for the player.
Int GetNthTintMaskColor(Int n)
  • Returns the color of the Nth tint mask.
Int GetNthTintMaskType(Int n)
  • Returns the type of the Nth tint mask.
Int SetNthTintMaskColor(Int n, Int color)
  • Sets the color of the Nth tint mask.
String GetNthTintMaskTexturePath(Int n)
  • Returns the texture path of the Nth tint mask.
SetNthTintMaskTexturePath(String path, Int n)
  • Sets the texturepath of the Nth tint mask.
Int GetNumTintsByType(Int type)
  • Returns how many indexes there are for this type.
Int GetTintMaskColor(Int type, Int index)
  • Returns the color for the particular tintMask type and index.
SetTintMaskColor(Int color, Int type, Int index)
  • Sets the tintMask color for the particular type and index.
String GetTintMaskTexturePath(Int type, Int index)
  • Returns the tintMask texture for the particular type and index.
SetTintMaskTexturePath(String path, Int type, Int index)
  • Sets the tintMask texture for the particular type and index.
UpdateTintMaskColors()
  • Updates Tint Mask colors without updating the entire model.
UpdateHairColor()
  • Instantly updates the player's hair color.
Int GetCameraState()
  • Returns the character's current camera state.
SetMiscStat(String name, Int value)
  • Sets the Misc Stat to the specified value.
SetPlayersLastRiddenHorse(Actor horse)
  • Sets the players last ridden horse, None will clear the last ridden horse.
Int GetSkillLegendaryLevel(String actorValue)
  • Returns the legendary level for the skill. -1 indicates that the skill cannot have a legendary level. This is marked as deprecated in SKSE's Game.psc.
SetSkillLegendaryLevel(String actorValue, Int level)
  • Sets the legendary level for the skill. This is marked as deprecated in SKSE's Game.psc.
Float GetPlayerExperience()
  • Returns the players experience for this level (not total experience).
SetPlayerExperience(Float exp)
  • Sets the player's experience to the specified amount (This will not trigger a level up notification)
Float GetExperienceForLevel(Int currentLevel)
  • Calculates the experience required for the player to level-up at the specified level
Bool GetPlayerMovementMode()
  • Returns true if in run mode, false if in walk mode. (This is only an indication of the control mode not if the player is actually running or walking.)
UpdateThirdPerson()
  • Updates the camera when changing shoulder positions.
UnbindObjectHotkey(Int hotkey)
  • Unbinds a favorited item bound to the specified hotkey. (0-7 reflects keys 1-8)
Form GetHotkeyBoundObject(Int hotkey)
  • Returns the base form object that is bound to the specified hotkey.
Bool IsObjectFavorited(Form form)
  • Returns whether the specified base form is favorited by the player.
Form GetFormEx(Int formId)
  • Performs the same function as GetForm but also works for form IDs greater than 0x80000000.
SetPlayerLevel(Int Level)
  • Sets the player's level.
ObjectReference GetCurrentCrosshairRef()
  • Returns the current crosshair ref.
ObjectReference GetCurrentConsoleRef()
  • Returns the currently selected ref in the console.