Jump to content

Photo

Force Animation in a script?


  • Please log in to reply
2 replies to this topic

#1
skinner927

skinner927

    Stranger

  • Members
  • Pip
  • 2 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

#2
TGBlank

TGBlank

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,893 posts
Tried looking for a script that does something similar? like zz_deathblow?

#3
skinner927

skinner927

    Stranger

  • Members
  • Pip
  • 2 posts

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.




Page loaded in: 1.203 seconds