OnMagicEffectHit

From the Oblivion ConstructionSet Wiki
Revision as of 23:38, 28 May 2008 by imported>Quetzilla
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax:

 begin OnMagicEffectHit EffectID

Example:

 begin OnMagicEffectHit
 begin OnMagicEffectHit FIDG 

This block will run once whenever the calling reference is hit by the specified magic effect type. If no effect type is specified, the block will be run whenever the reference is hit by any magic effect.

Notes[edit | edit source]

  • This function works on actors, activators, containers, doors, and (unconfirmed) furniture.
  • This function does not work on lights and items that can be put into an inventory.
  • In order for onMagicEffectHit to run, the calling object must have normal collision.

See Also[edit | edit source]