Activation failing when called from spell cast on player

Post » Mon Nov 19, 2012 9:00 am

This is the weirdest bug. One of my spells has an ActiveMagicEffect script that places several activators in an array called bars, then cycles through the array to activate each one in turn with bars[i].Activate(akTarget).

This works perfectly when the spell is cast on any target but for the Player. When cast on the Player by a remote target or NPC, the spell script runs perfectly, EXCEPT that the Activate command is not passed to the Activators. No errors are generated in the logfile, but the return from the Activate command is False, as if the activation were being blocked by script.

This is driving me crazy. Does anyone have the faintest idea why this is happening, or is it time for yet another elaborate workaround for an inexplicable bug?

Edit: I should add that it doesn't matter who I put in the Activate parameter, activation silently fails regardless.

Edit the second:

SOLVED

For whatever reason, I was unable to use an actor or the (inanimate) caster as the parameter for Activate. Instead, I had to use another Activator.

Yeah, I don't get it either. At least it works now.
User avatar
Richard
 
Posts: 3371
Joined: Sat Oct 13, 2007 2:50 pm

Return to V - Skyrim