Spell doesn't work when player is sitting

Post » Wed Oct 06, 2010 4:39 am

So, here's my problem I'm hoping someone can help me with:

I'm using a script that sends an XMarker to cast a targeted script effect spell on the player, it all works just fine.

Except when the player is sitting when the spell is cast. No problems if the player was standing first and would then sit down while under the spell effect.
It seems to immediately go away again after a frame or so. I know this because it displays a message, but that's the only thing I will get from it.

It does change the Camera FOV through the spellscript (OBSE Function), which may be troubling with sitting down because the FOV would stay the same. (Or was immediately reset by something, although I doubt this)
I know for a fact that this command will not kill the script when run while sitting down, because the message I told about earlier is run later in the script then the FOV line.
And absolutely NOTHING in the script has something to do with sitting down specifically.

Any idea what this could be?

Thank you in advance,
MrP
User avatar
Nicholas
 
Posts: 3454
Joined: Wed Jul 04, 2007 12:05 am

Post » Wed Oct 06, 2010 8:04 am

I think you will need to post the script to get any real help on this!

When testing this kind of thing use an effect such as "fire damage" (not real fire damage just the visual effect)
so you can SEE the spell hit the PC in the chair (just to be sure it is not "missing" the player.)




So, here's my problem I'm hoping someone can help me with:

I'm using a script that sends an XMarker to cast a targeted script effect spell on the player, it all works just fine.

Except when the player is sitting when the spell is cast. No problems if the player was standing first and would then sit down while under the spell effect.
It seems to immediately go away again after a frame or so. I know this because it displays a message, but that's the only thing I will get from it.

It does change the Camera FOV through the spellscript (OBSE Function), which may be troubling with sitting down because the FOV would stay the same. (Or was immediately reset by something, although I doubt this)
I know for a fact that this command will not kill the script when run while sitting down, because the message I told about earlier is run later in the script then the FOV line.
And absolutely NOTHING in the script has something to do with sitting down specifically.

Any idea what this could be?

Thank you in advance,
MrP

User avatar
Maddy Paul
 
Posts: 3430
Joined: Wed Feb 14, 2007 4:20 pm


Return to IV - Oblivion