ActiveMagicEffect Script
Материал из Creation Kit Русский
Наследуется от: Нет.
Скрипт для управления активными магическими эффектами (MagicEffects, которые в настоящее время прикреплены к Актеру).
Отметим, что в дополнение к событиям определенным ниже, скрипты ActiveMagicEffect так же получают события связанные с актером, к которому они прикрепляются. Это делает их полезными для добавления скриптовой обработки актеров, динамически без использования квестовых псевдонимов.
Определение
ScriptName ActiveMagicEffectСвойства
Нет.
Глобальные функции
Нет.
Компонентные функции
| Функция | Описание |
|---|---|
| Function AddInventoryEventFilter(Form akFilter) | Adds an inventory event filter to this effect. |
| Function Dispel() | Развеивает данный активный магический эффект. |
| MagicEffect Function GetBaseObject() | Получает объект MagicEffect на основе которого сделан данный активный магический эффект. |
| Actor Function GetCasterActor() | Определяет Актера, который произносит заклинание, использующее этот активный магический эффект. |
| Actor Function GetTargetActor() | Получает Актера к которому применен данный активный магический эффект. |
| Function RegisterForAnimationEvent(ObjectReference akSender, string asEventName) | Регистрирует данный магический эффект для получения указанного анимационного события от указанного объекта. |
| Function RegisterForLOS(Actor akViewer, ObjectReference akTarget) | Регистрирует данный магический эффект для получения LOS событий "заметил" и "потерял из виду" между наблюдателем и целью. |
| Function RegisterForSingleLOSGain(Actor akViewer, ObjectReference akTarget) | Registers this magic effect to receive a single LOS gain event when the viewer sees the target. |
| Function RegisterForSingleLOSLost(Actor akViewer, ObjectReference akTarget) | Registers this magic effect to receive a single LOS lost event when the viewer loses sight of the target. |
| Function RegisterForSingleUpdate(float afInterval) | Registers this magic effect to receive a single update event in the specified time. |
| Function RegisterForSingleUpdateGameTime(float afInterval) | Registers this magic effect to receive a single update event in the specified number of game hours. |
| Function RegisterForSleep() | Registers this magic effect to receive sleep events for when the player goes to sleep or wakes up. |
| Function RegisterForTrackedStatsEvent() | Registers this magic effect to receive tracked stats events for when tracked stats are updated. |
| Function RegisterForUpdate(float afInterval) | Registers this magic effect to receive update events with the specified interval, or changes the update interval. |
| Function RegisterForUpdateGameTime(float afInterval) | Registers this magic effect to receive update events with the specified interval in game time hours, or changes the update interval. |
| Function RemoveAllInventoryEventFilters() | Remove all inventory event filters on this effect. |
| Function RemoveInventoryEventFilter(Form akFilter) | Remove a specific inventory event filter. |
| Function StartObjectProfiling() | Starts profiling all scripts attached to this magic effect. |
| Function StopObjectProfiling() | Stops profiling all scripts attached to this magic effect. |
| Function UnregisterForAnimationEvent(ObjectReference akSender, string asEventName) | Unregisters this magic effect from receiving the specified animation event from the specified object. |
| Function UnregisterForLOS(Actor akViewer, ObjectReference akTarget) | Unregisters this magic effect from any LOS events between the viewer and target. |
| Function UnregisterForSleep() | Unregisters this magic effect from sleep events. |
| Function UnregisterForTrackedStatsEvent() | Unregisters this magic effect from tracked stats events. |
| Function UnregisterForUpdate() | Unregisters this magic effect from update events. |
| Function UnregisterForUpdateGameTime() | Unregisters this magic effect from game time update events. |
События
| Событие | Описание |
|---|---|
| Event OnAnimationEvent(ObjectReference akSource, string asEventName) | Received when one of animation events we are listening for is recieved. |
| Event OnAnimationEventUnregistered(ObjectReference akSource, string asEventName) | Received when one of the animation events we are listening for has been automatically unregistered by the game due to the target animation graph unloading. |
| Event OnEffectStart(Actor akTarget, Actor akCaster) | Событие вызывается, когда данный эффект начинается |
| Event OnEffectFinish(Actor akTarget, Actor akCaster) | Событие вызывается, когда данный эффект был закончен |
| Event OnGainLOS(Actor akViewer, ObjectReference akTarget) | Received when the viewer goes from not seeing the target to seeing the target - if this magic effect is registered. |
| Event OnLostLOS(Actor akViewer, ObjectReference akTarget) | Received when the viewer goes from seeing the target to not seeing the target - if this magic effect is registered. |
| Event OnSleepStart(float afSleepStartTime, float afDesiredSleepEndTime) | Событие вызывается, когда игрок ложится спать. |
| Event OnSleepStop(bool abInterrupted) | Событие вызывается, когда игрок проснулся, или его сон был прерван. |
| Event OnTrackedStatsEvent(string asStat, int aiStatValue) | Received when tracked stats are updated. |
| Event OnUpdate() | Событие вызывается с периодическим интервалом, если магический эффект был зарегистрирован. |
| Event OnUpdateGameTime() | Событие вызывается с периодическим интервалом игрового времени, если магический эффект был зарегистрирован. |
ActiveMagicEffects так же получают события от актеров к которым прицеплены.