OnMagicEffectHit

From GECK
Jump to: navigation, search

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.

Syntax

 begin OnMagicEffectHit EffectID

Example

 begin OnMagicEffectHit
 begin OnMagicEffectHit FIDG 

Notes

  • 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