Ragdolls manipulation using scripts

Post » Thu Aug 08, 2013 1:09 pm

Hello,

I'm trying to play around with ragdolls and scripts. I'm trying to kill an actor ( this part is done ) but just before he hit the ground i need to create an invisible ( or several ) physical box, or something similar, at a specific place very close to the actor.

My goal is to have some sort of " control " over the actor ragdoll, so it will fall in a specifc way.

Any idea how i could achieve that ?

User avatar
Brooke Turner
 
Posts: 3319
Joined: Wed Nov 01, 2006 11:13 am

Post » Wed Aug 07, 2013 9:55 pm

You could script it by using http://www.creationkit.com/ApplyHavokImpulse_-_ObjectReference

User avatar
patricia kris
 
Posts: 3348
Joined: Tue Feb 13, 2007 5:49 am

Post » Wed Aug 07, 2013 10:09 pm

That would be useful if i wanted the actor to be pushed in a specific way, but in my case i just want the actor to stay in place. It's kinda hard to explain, here's a terrible paint drawing :

http://i.minus.com/j45QoEbsYUtGA.png

Figure 1 :

Try to spawn an actor and use the console to kill him. He will simply crumble to the ground in a very specific way determined by the weight and other factors.

If you do that with multiple actors, you will notice they always fall the same way.

But you will also notice that they're ALWAYS fully falling, their bodies will always touch the ground no matter what.

Figure 2 :

By creating two invisible blocks i could prevent the body to fall backwards or forward ( again, determined by weight ) so the said ragdolled body will ( two possibilities )

1. Stay in place

2. Crumble in place

But in both case, there's a minimal chance that the body will fully touch the ground since it can't fall backwards or forward.

Like that i could obtain some interesting ragdoll-made-death-animations, like an actor falling on his knees and stay in that pose until the player decides to hit him.

It's very hard to explain, i hope you see where i'm going.

User avatar
Karl harris
 
Posts: 3423
Joined: Thu May 17, 2007 3:17 pm


Return to V - Skyrim