OnSpellCastAt
Contents |
[edit] OnSpellCastAt
The script attached to this event fires when the object becomes the target of a spell. This can include responses such as casting a spell of the object's own, dying, disappearing, getting stronger (absorbing the magical effect), etc.
[edit] Trigger
A spell has been cast at the creature, door, or placeable object. It only fires when EventSpellCastAt is fired on the object.
[edit] Function(s)
DetermineCombatRound(object, int) for standard combat actions.
[edit] Remarks
If a harmful spell has been cast on the creature and that creature is not already in combat, it becomes hostile.
[edit] Known Bugs
GetLastSpellCaster cannot return any area of effects which fire the event, and so may return OBJECT_INVALID. Not sure if this is intended, although Bioware's own Area of Effect reaction code in the event does take it into account and dispels the creatures own location.
[edit] See Also
functions: |