I recommand to use a variable : type boolean, replicated: yes, and make a macro or event : branch :
ragdoll? - true disable physical animation and set simulate physics in character mesh true
- false (else) active physical animation and set simulate physics in character mesh : false