Garry's Mod Wiki

NPC:BecomeRagdoll

  Entity NPC:BecomeRagdoll( CTakeDamageInfo info )

Recently Added

This was recently added in version (2025.08.08). It might only be available on the Dev Branch right now.

Description

Become a ragdoll and remove the entity. Internally handles serverside/clientside ragdoll creation, momentum calculation, triggering ragdoll creation hooks / events and cloning entity's bone transforms to the created ragdoll.

Arguments

1 CTakeDamageInfo info
Damage info passed from an onkilled event

Returns

1 Entity
The created serverside ragdoll, nil if failed or a clientside ragdoll created.