GetLastSpellCaster()

Determines who last cast a spell.

object GetLastSpellCaster();

Description

This is for use in a OnSpellCastAt script, it gets who cast the spell. The spell could have been cast by a creature, placeable or door. Returns OBJECT_INVALID if the caller is not a creature, placeable or door.



Remarks

You should not use this function in actual spell scripts. In spell scripts, the object casting the spell will be OBJECT_SELF.


Version

1.61

See Also

functions: GetCasterLevel | GetLastHostileActor | GetLastSpell | GetLastSpellHarmful
categories: Get Data Functions | Spells Functions
events: OnSpellCastAt Event


 author: Jody Fletcher, editor: Lilac Soul