Jump to content

Way to tell precisely when a weapon is equipped?


Asterra

Recommended Posts

 

What about calculating the moment? You can get the total time the animation takes to play and then with some testing pindown in what fraction of the animation the actor finally touches the weapon. It will change if the actor's agility changes but otherwise should be fine.

Then you just run a script that only last for the animation and triggers whatever effect you need in that moment. The script would have to run frame by frame thou

Isn't that pretty much what I was saying ? PrintC of the float clock , along with PrintC of points that are true. Otherwise how else do you imagine "calculating the moment" ?

 

This is what I mean by a kludged approach. It'll work somewhat well but it will not be the frame-precise measure I actually need. It would also necessitate my monitoring game speed, NPC stats, and which weapon is being used. Keeping a list of each possibility and situating the timing based on all of that. I'm not trying to, you know, set the world on fire with this. It's just a simple bug fix for a fairly minor bug. If it could be a one-time yes/no check, that's worth it. But probably not all of that.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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