ActorBase Script

Навигация

Материал из Creation Kit Русский
Перейти к: навигация, поиск
Symbol error.png Статья не закончена!

Наследуется от: Form Script

Скрипт для управления объектами с базовым типом Actor. Актеры являются ссылками на этот тип.

Определение

ScriptName ActorBase extends Form

Свойства

Нет

Глобальные функции

Нет

Компонентные функции

Функция Описание
Class Function GetClass() Возвращает класс этого актера.
int Function GetDeadCount() Возвращает число погибших актеров с таким же базовым объектом (формой).
FormList Function GetGiftFilter() Возвращает список форм данного актера, содержащий ключевые слова, используемые в фильтре gift (подарок или объект, который можно дать).
Race Function GetRace() Возвращает расу персонажа.
int Function GetSex() Возвращает пол персонажа.
bool Function IsEssential() Имеет ли данный актер флажок essential или нет.
bool Function IsInvulnerable() Имеет ли данный актер флажок invulnerable или нет.
bool Function IsProtected() Имеет ли данный актер флажок protected или нет.
bool Function IsUnique() Имеет ли данный актер флажок unique или нет.
Function SetEssential(bool abEssential) Задает данному актеру флажок essential или снимает его. Актер не может одновременно иметь флажки protected и essential.
Function SetInvulnerable(bool abInvulnerable) Задает данному актеру флажок invulnerable или снимает его.
Function SetProtected(bool abProtected) Задает данному актеру флажок protected или снимает его. Актер не может одновременно иметь флажки protected и essential.
Function SetOutfit(Outfit akOutfit,bool abSleepOutfit) Изменяет комплект одежды (outfit) по-умолчанию или для сна. Модели будут загружены в следующий раз при загрузке актера.

SKSE Компонентные функции

Функция Описание
CombatStyle Function GetCombatStyle() Returns the combat style of this actor.
Function SetCombatStyle(CombatStyle cs) Sets the combat style of this actor.
Outfit Function GetOutfit(bool bSleepOutfit = false) Returns the default or sleep outfit of this actor.
Function SetClass(Class c) Changes the class of this actor.
float Function GetWeight() Returns the weight of this actor.
Function SetWeight(float weight) Changes the weight of this actor.
int Function GetNumHeadParts() Returns the number of head parts of this actor.
HeadPart Function GetNthHeadPart(int slotPart) Returns the specified head part of this actor.
Function SetNthHeadPart(HeadPart headPart, int slotPart) Changes the specified head part of this actor.
float Function GetFaceMorph(int index) Returns the specified head morph value of this actor.
Function SetFaceMorph(float value, int index) Changes the specified face morph value of this actor.
int Function GetFacePreset(int index) Returns the face preset of this actor.
Function SetFacePreset(int value, int index) Changes the face preset of this actor.
ColorForm Function GetHairColor() Returns the ColorForm of this actor's hair.
Function SetHairColor(ColorForm color) Changes the ColorForm of this actor's hair.
Int Function GetSpellCount() Returns the number of spells defined in the base actor form.
Spell Function GetNthSpell(int n) Returns the specified spell defined in the base actor form.

События

Нет.

Примечания

  • Любые изменения, сделанные для leveled actor's leveled (or 'temporary') base will be lost when the actor re-levels.
  • Любые изменения, сделанные для leveled actor's non-leveled (or editor) base will not show up on the actor until the actor re-levels.