Execute_EnableRagdoll
Description
Enables ragdoll on the BaseObject entity (default: Self) with a configurable impulse. The impulse is applied even if the entity is already in ragdoll. The non-base entity is used only as a direction reference (S1). Unspecified parameters fall back to UB1RagdollDataAsset defaults. WARNING: On initial ragdoll entry, clears non-essential buffs and interactions. place AddBuff Executes after EnableRagdoll to preserve them. Note: Essential buffs (IsEssential=true) survive regardless of order. Note: Animation commands (SubActionPlayAnim, etc.) are blocked both before (Montage_StopAll) and after (Ragdoll posture). Note: Direct value commands (AddStat, AddCurrency, AddSpeechBubble, PlayFx, etc.) are order-independent.
Parameters
| Parameter | Description |
|---|---|
| S1 | (Optional) EB1RagdollImpulseDirectionMode. Default: TargetToSelf. |
| SelfForward / TargetForward / SelfToTarget / TargetToSelf. | |
| TargetForward falls back to BaseObject forward when the non-base entity | |
| is invalid. SelfToTarget / TargetToSelf use vertical-only impulse. | |
| S2 | (Optional) Impulse bone name. |
| F1 | (Optional) Horizontal impulse magnitude. <=0 falls back to default. |
| F2 | (Optional) Vertical impulse magnitude. <=0 falls back to default. |
Examples
| Description | Command | BaseObject | S1 | S2 | F1 | F2 |
|---|---|---|---|---|---|---|
| Default ragdoll on Self | EnableRagdoll | Self | ||||
| Strong knockback Self away from target | EnableRagdoll | Self | TargetToSelf | 50000 | 4000 | |
| Forward fall on Self | EnableRagdoll | Self | SelfForward | spine_03 | 15000 | 1000 |