remove ragdolls

Hi, is there a way to remove ragdolls in lua?


local tEntities = ents.FindByClass("prop_ragdoll")

for i = 1, #tEntities do
   tEntities*:Remove()
end

I believe death ragdolls have another class, but I forgot what it was.

it is not in ents.GetAll()

there must be something different to remove ragdolls

If it’s not in ents.GetAll(), then what you see is a clientside ragdoll (corpses). Those are removed automatically as far as I know. I think they are called “C_ClientRagdoll”, but you won’t see them if you execute ents.GetAll() on the server.

yeah it is client sited, thanks for help :slight_smile: