OnMagicEffectHit
From GECK
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.
Contents
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
- HasMagicEffect
- OnHitWith
- This blocktype is available as an Event Handler.