Multiple addons, scripts and missions could benefit from the addition of scripted ragdoll effects.
Currently the ragdolleffect from the engine can only be scripted with tedious and unreliable workarounds. (basically by smacking physical objects against the player)
- Suggestion -
Add the following 2 commands to the game:
bool = unitName getRagdoll;
(allows to check if a unit is currently in Ragdoll-state)
unitName setRagdoll [true, [0,0,0], 1, "", true];
Parameters
0 - boolean: turn ragdoll effect on or off
1 - vector3D(optional): Vector indicating the direction of the applied force
2 - Number(optional): Force of impact
3 - String(optional): Selection name where the force is applied
4 - boolean(optional): true(default) if ragdoll should automatically finish or false if it should last until removed.