Jump to content
Sign in to follow this  
Waffle_SS

Forced Ragdoll Script (WIP)

Recommended Posts

Well seeing that Bohemia isn't adding a ragdoll fucntion at the moment, I decided to help find a way to ragdoll units on command.

So far I have been able to do it in a water enviroment using a boat bt teleporting it to the player, putting the player in the boat, accelerating the boat, and then ejecting the player. The whole thing takes about half of a second and the boat is almost unnoticeable to the player.

_ragdoll setVelocity [0,0,0];
_ragdoll setPos [(getPos _ragdoll select 0),(getPos _ragdoll select 1),-1.59697];
_ragdoll setVelocity [0,0,0];
_savepos1 = getPos _ragdoll;
sleep 0.3;
_magicarpet = "B_Lifeboat" createVehicle [(getPos _ragdoll select 0),(getPos _ragdoll select 1),-1.59697];
_magicarpet setPos _savepos1;
_magicarpet setVelocity [0,0,9];
_ragdoll moveInCargo _magicarpet;
_magicarpet setVelocity [0,0,-9];
_ragdoll action ["eject",_magicarpet];
sleep 0.5;
deleteVehicle _magicarpet;

The only problem with this is that I have no way of forcing the player to unragdoll, they just coast down to the bottom. It would be very usefull if there was some method of getting the player to unragdoll a few seconds after they are ragdolled. I also can not find a usefull method of getting a player to ragdoll on land.

Edited by Waffle_SS

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×