Jump to content

Casting Without the animation


okokokok

Recommended Posts

How do i script a spell cast without the animation?

 

pc is the one to cast, and the spell is a conjuration spell btw.

 

player.cast <spell name> does not work the animation is played

 

player.addspell <spell name> this works if the spell is an ability or disease, the problem is that the magic effect stays permanently unless player.removespell is present later in the script.

 

For some reason i can't get a timer to work in a magic effect script. (begin ScriptEffectStart, begin ScripteffectfFinish etc.) so if i have an active player.removespell later in the script the magic effect is terminated immediately.

 

I was looking at the castNoAnim function from the obse wishlist. It would be a perfect solution but its not implemented.

 

any ideas?

Link to comment
Share on other sites

My suggestion is to script an activator to cast the spell instead. Sort of like how rune stones will give bound weapons or armor when activated.

 

As for why your timing doesn't work, I would need to see what you have for the script. Or it could be something as simple as you forgetting to set the spell duration and leaving it at 0 seconds.

Link to comment
Share on other sites

My suggestion is to script an activator to cast the spell instead. Sort of like how rune stones will give bound weapons or armor when activated.

 

As for why your timing doesn't work, I would need to see what you have for the script. Or it could be something as simple as you forgetting to set the spell duration and leaving it at 0 seconds.

Nice idea but all the rune stones activators do is making player cast a spell on him/herself, i havnt checked the script but im pretty sure they use the cast function.

 

for the timer, sure i could pm you the script or i could just email you the whole damn .esp if you'd like... as i said im stumped on this one...

Link to comment
Share on other sites

OK, that was a bad example with the rune stones. I've only used them once and didn't remember how it went. But activators can cast spells. So you can use them to cast a spell on the player, as long as the spell is not a self target spell. If it is a self target spell, then I have no idea what you can try.

 

And I'll take a look at your script, so just pm your script to me or else post it here.

 

EDIT: Since you say that it's a conjuration spell, it's most likely a self targeted spell... Sorry, no Ideas then.

Edited by fg109
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...