Game Script
Коллекция игровых глобальных функций
Содержание
Определение
ScriptName Game
Свойства
Нет.
Глобальные функции
| Функция | Описание |
|---|---|
| AddAchievement(int aiAchievementID) | Добавляет достижение/трофей в профиль игрока. |
| AdvanceSkill(string asSkillName, float afMagnitude) | Увеличивает прогресс использования навыка игрока на переданное значение. |
| AddHavokBallAndSocketConstraint(ObjectReference arRefA, string arRefANode, ObjectReference arRefB, string arRefBNode, float afRefALocalOffsetX, float afRefALocalOffsetY, float afRefALocalOffsetZ, float afRefBLocalOffsetX, float afRefBLocalOffsetY, float afRefBLocalOffsetZ) | Добавляет константу типа "шарнировой шарнир" между двумя твердыми телами, определяется ссылками на объекты и названиями узловых элементов для связи. |
int Function CalculateFavorCost(int aiFavorPrice)
- Calculates how many points the player would have to pay for a favor of the specified price.
Function ClearPrison()
- Очищает значения всех переменных, связанных с арестом на персонаже игрока, чтобы игра знала, что он более не преступник.
Function ClearTempEffects()
- Удаляет все временные эффекты (такие как эффекты с поверхностью земли, после того, как сел дракон) в игре.
Function DisablePlayerControls(bool abMovement, bool abFighting, bool abCamSwitch, bool abLooking, bool abSneaking, bool abMenu, bool abActivate, bool abJournalTabs, int aiDisablePOVType)
- Отключает указанные типы управления игроком.
Function EnableFastTravel(bool abEnable)
- Включить или выключить способность игрока быстро путешествовать по игровой карте.
Function EnablePlayerControls(bool abMovement, bool abFighting, bool abCamSwitch, bool abLooking, bool abSneaking, bool abMenu, bool abActivate, bool abJournalTabs, int aiDisablePOVType)
- Включает указанные типы управления игроком.
Function FadeOutGame(bool abFadingOut, bool abBlackFade, float afSecsBeforeFade, float afFadeDuration)
- Делает затемнение/просветление экрана в игре с указанными параметрами.
Function FastTravel(ObjectReference akDestination)
- Совершает быстрое перемещение игрока в локацию указанного объекта.
Actor Function FindClosestActor(float afX, float afY, float afZ, float afRadius)
- Находит ближайшего актера в пределах данного радиуса локации.
Actor Function FindClosestActorFromRef(ObjectReference arCenter, float afRadius)
- Находит ближайшего актера в пределах данного радиуса от конкретного объекта.
ObjectReference Function 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 Function 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 Function 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 Function FindClosestReferenceOfTypeFromRef(Form arBaseObject, ObjectReference arCenter, float afRadius)
- Finds the closest reference of a given base object within a given radius of a reference
Actor Function FindRandomActor(float afX, float afY, float afZ, float afRadius)
- Finds a random actor within a given radius of a location
Actor Function FindRandomActorFromRef(ObjectReference arCenter, float afRadius)
- Finds a random actor within a given radius of a reference
ObjectReference Function 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 Function 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 Function 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 Function FindRandomReferenceOfTypeFromRef(Form arBaseObject, ObjectReference arCenter, float afRadius)
- Finds a random reference of a given base object within a given radius of a reference
Function ForceFirstPerson()
- Переводит камеру игрока в режим от 1-го лица.
Function ForceThirdPerson()
- Переводит камеру игрока в режим от 3-го лица.
Form Function GetForm(int aiFormID)
- Получает форму из игры через указанный form ID номер.
Form Function GetFormFromFile(int aiFormID, string asFilename)
- Obtains the form specified by its form ID number which originated in the specified file.
float Function GetGameSettingFloat(string asGameSetting)
- Obtains the value of a float game setting.
float Function GetGameSettingInt(string asGameSetting)
- Obtains the value of an int game setting.
float Function GetGameSettingString(string asGameSetting)
- Obtains the value of a string game setting.
Actor Function GetPlayer()
- Получает актера представляющего игрока.
ObjectReference Function GetPlayerGrabbedRef()
- Obtains the ObjectReference the player is currently grabbing.
Actor Function 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 Function GetRealHoursPassed()
- Возвращает число реальных часов, которые игрок провел в игре.
float Function GetSunPositionX()
- Gets the X position of the sun.
float Function GetSunPositionY()
- Gets the Y position of the sun.
float Function GetSunPositionZ()
- Gets the Z position of the sun.
Function HideTitleSequenceMenu()
- Hides the title sequence menu.
Function IncrementSkill(string asSkillName)
- Advances the provided Skill by the one point (for the player only).
Function IncrementSkillBy(string asSkillName, int aiCount)
- Advances the provided Skill by the given number of points (for the player only).
Function IncrementStat(string asStatName, int aiModAmount) native global
- Modifies the specified MiscStat by the given amount
bool Function IsActivateControlsEnabled()
- Are the activation controls enabled?
bool Function IsCamSwitchControlsEnabled()
- Are the camera switch controls enabled?
bool Function IsFastTravelEnabled()
- Is fast travel enabled?
bool Function IsFightingControlsEnabled()
- Are the fighting controls enabled?
bool Function IsJournalControlsEnabled()
- Are the journal menu controls enabled?
bool Function IsLookingControlsEnabled()
- Are the looking controls enabled?
bool Function IsMenuControlsEnabled()
- Are the menu controls enabled?
bool Function IsMovementControlsEnabled()
- Are the movement controls enabled?
bool Function IsPlayerSungazing()
- Checks to the see if the player is looking directly at the sun.
bool Function IsSneakingControlsEnabled()
- Are the sneaking controls enabled?
bool Function IsWordUnlocked(WordOfPower akWord)
- Is the word of power unlocked on the player?
Function PlayBink(string asFileName, bool abInterruptible, bool abMuteAudio, bool abMuteMusic, bool abLetterbox)
- Проигрывает bink файл (видео).
Function PrecacheCharGen()
- Precaches all the data used by character gen to avoid hitches with file I/O.
Function PrecacheCharGenClear()
- Clears all the previously cached data used by character gen.
int Function QueryStat(string asStat)
- Queries the given stat and returns its value.
Function QuitToMainMenu()
- Forces the game back to the main menu.
bool Function RemoveHavokConstraints(ObjectReference arFirstRef, string arFirstRefNodeName, ObjectReference arSecondRef, string arSecondRefNodeName)
- Removes any constraint between two rigid bodies
Function RequestAutoSave()
- Requests for an auto-save to be made.
Function RequestModel(string asModelName)
- Requests the specified model.
Function RequestSave()
- Requests for a normal save to be made.
Function SendWereWolfTransformation()
- Finds an actor in high who can detect the player to call werewolf crime on the player
Function ServeTime()
- Has the player serve their jail time.
Function SetBeastForm(bool abEntering)
- Flags the player as being in/out of "beast form".
Function SetCameraTarget(Actor arTarget)
- Sets the camera target actor
Function SetHudCartMode(bool abSetCartMode)
- Устанавливает или убирает "режим повозки" для HUD.
Function SetInChargen(bool abDisableSaving, bool abDisableWaiting, bool abShowControlsDisabledMessage)
- Включает/выключает различный функционал, который нам нужен на этапе создания персонажа (chargen).
Function SetPlayerAIDriven(bool abAIDriven)
- Enables or disables the AI driven flag on the player.
Function SetPlayerReportCrime(bool abReportCrime)
- Set the state of the player as an actor who commits crimes
Function SetSittingRotation(float afValue)
- Устанавливает угол смещения для камеры игрока, когда тот сидит.
Function SetSunGazeImageSpaceModifier(ImageSpaceModifier apImod)
- Will cause the specified ImageSpace Modifier to be triggered when the player begins looking at the sun
Function ShakeCamera(ObjectReference akSource, float afStrength)
- Трясти камеру из указанного места с указанной силой.
Function ShakeController(float afLeftStrength, float afRightStrength, float afDuration)
- Произвести вибрацию джойстика на указанное количество времени.
Function ShowFirstPersonGeometry(bool abShow)
- Shows or hides the first-person geometry
Function ShowLimitedRaceMenu()
- Показывает экран изменения расы/пола, но без возможности изменения расы или пола.
Function ShowRaceMenu()
- Показывает экран изменения расы/пола.
Function ShowTitleSequenceMenu()
- Shows the title sequence menu.
Function ShowTrainingMenu(Actor aActor)
- Показывает меню обучения навыку, с актером, в качестве параметра.
Function StartTitleSequence(string asSequenceName)
- Plays the specified sequence in the title menu.
Function TeachWord(WordOfPower akWord)
- Teaches the specified WordOfPower to the player
Function TriggerScreenBlood(int aiValue)
- Trigger on-screen blood splatter.
Function UnlockWord(WordOfPower akWord)
- Unlocks the specified WordOfPower so the player can use it
bool Function UsingGamepad()
- Returns whether the player is using a gamepad or not.
SKSE Глобальные функции
int Function GetPerkPoints()
- Returns the number of perk points available to the player.
Function SetPerkPoints(int perkPoints)
- Sets the number of perk points available to the player.
Function ModPerkPoints(int perkPoints)
- Changes the number of perk points available to the player by the specified amount.
Части функции
Нет.
События
Нет.