Jump to content

Force Animation in a script?


skinner927

Recommended Posts

How can I animate a character thru a script? I have their object, and I can do anything to them, but I have no idea how to get them animated.

 

I've tried a few things and to prevent confusion I won't post what I've done. It would be nice if I could use a VFX for the animation but if I have to do sound and animation separate it will still be ok.

 

Basically, the script is run when the user interacts with an object, and I need them to have an animation applied to them. Simply, the same animation for drinking a "Potent Health Poultice". It's VFX id is 91011.

 

Could anyone help out? I tried searching to no avail, thanks :D

Link to comment
Share on other sites

Tried looking for a script that does something similar? like zz_deathblow?

 

Thanks for the bump in the right direction. While, I didn't find it in that script exactly I was still able to find it. And, for searchability, here's how:

effect eVFX = EffectVisualEffect(91011);
ApplyEffectOnObject(EFFECT_DURATION_TYPE_TEMPORARY, eVFX, partyMembers[i], 3.0f, stEvent.oCaster,0);

 

EffectVisualEffect() takes an int ID from VFX_.xls, which is exactly what I wanted.

 

Thanks again :D

 

I can finally finish my personal mod.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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