Hi,
I need to know what item a spell was cast with. So is it cast from a scroll or wand, etc. or is it cast from your spellbook? The script gets called from the OnSpellCastAt event. I've tried using the GetSpellCastItem, but that one only works if the script gets called by the item itself.
If you have any ideas, give me a hand
How to get the item the spell was cast with
Moderator: Event DM
I don't get what you mean.
I use this:
(but not sure if it works 100%)
object castItem = GetSpellCastItem();
if (GetIsObjectValid(castItem) == TRUE )
{
...// is using an item to cast.
}
I use this:
(but not sure if it works 100%)
object castItem = GetSpellCastItem();
if (GetIsObjectValid(castItem) == TRUE )
{
...// is using an item to cast.
}
All posts are made as a player unless otherwise noted or in the team boards.
-------------------------------------------------------
Roses are 0xFF0000
Violetts are 0x0000FF
all my base
are belong to you
-------------------------------------------------------
Roses are 0xFF0000
Violetts are 0x0000FF
all my base
are belong to you