Hello, I am working on an entity at the moment, when a player is killed by the entity I want their ragdoll to be removed, I use this code in the cl_init.lua
[CODE]net.Receive("dedPlay", function(len, ply)
hook.Remove("RenderScreenspaceEffects", "008Ef")
for k, v in pairs (ents.GetAll()) do
print(v:GetClass())
if (v:GetClass() == "class C_ClientRagdoll") then
v:Remove()
end
end
end)[/CODE]
However this does not remove the players ragdoll, I have no idea why, any help with this will be greatly appreciated! :p
This is where you failed: "class C_ClientRagdoll"
Sorry, you need to Log In to post a reply to this thread.