running script on enemy death
Posted: Tue Mar 22, 2022 1:51 pm
I can't get my exploding zombies to explode. I just get a "failed to run IBScript" message on their deaths.
This is the set up to launch the castspell script: The tag is correct.
I think the problem might be that the castspell script is designed to work in convos rather than combat. Ie, the second parameter indicates which PC the spell is cast at, but in this case I don't want the spell to be cast at a PC - I want the zombie to cast it on itself so the explosion is centered on it.
Is there an option I'm overlooking that would better enable the dead zombie to cast an exploding spell on itself? Or might the problem be something else?
This is the set up to launch the castspell script: The tag is correct.
I think the problem might be that the castspell script is designed to work in convos rather than combat. Ie, the second parameter indicates which PC the spell is cast at, but in this case I don't want the spell to be cast at a PC - I want the zombie to cast it on itself so the explosion is centered on it.
Is there an option I'm overlooking that would better enable the dead zombie to cast an exploding spell on itself? Or might the problem be something else?