Difference between revisions of "Talk:Actor Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Cipscis
(→‎Player as Actor: Use ReferenceAlias or ActiveMagicEffect)
imported>Fowl
Line 7: Line 7:


: -- [[User:Cipscis|Cipscis]] 21:19, 16 February 2012 (EST)
: -- [[User:Cipscis|Cipscis]] 21:19, 16 February 2012 (EST)
== Summon and Banish Events ==
I found 4 instances of a script defining a "Summon" event, each of them also has a "Banish" event. In most of these they are just called like functions Summon() and Banish() but maybe they are real events? Anybody know?
* defaultFakeRezSpell.psc
* defaultFakeSummonSpell.psc
* dunFrostmereCryptFakeSummon.psc
* dunGeirmundDuplicateSpellManager.psc

Revision as of 11:39, 17 February 2012

Player as Actor

How are we to run Events on the player from the Actor Object? Is there a way to attach scripts to the player, or something equivalent? For example, how can I detect when the player is hit (using an OnHit block)? --Doulos 21:16, 16 February 2012 (EST)

Scripts extending ReferenceAlias or ActiveMagicEffect will be sent events from Actors that they are pointing at, and it is possible to use a Quest to point a ReferenceAlias script at the player, or a Spell to point an ActiveMagicEffect script at the player.
-- Cipscis 21:19, 16 February 2012 (EST)

Summon and Banish Events

I found 4 instances of a script defining a "Summon" event, each of them also has a "Banish" event. In most of these they are just called like functions Summon() and Banish() but maybe they are real events? Anybody know?

  • defaultFakeRezSpell.psc
  • defaultFakeSummonSpell.psc
  • dunFrostmereCryptFakeSummon.psc
  • dunGeirmundDuplicateSpellManager.psc