Hi FacePunch(also FacePunch users)! Recenly, I try remove murder gamemode bug: "Corpse, loots didn't remove". So, I found entity, that didn't removed by game.CleanUp(), and ent:Remove(). I check in console about it: Server side prints WorldSpawn, Clientside prints Prop_ragdoll. So, I try remove entities on client:
[code] for k,v in pairs(ents.GetAll()) do
if v:GetClass() == "prop_ragdoll" then
v:Remove()
end
end
[/code]
After I see error about remove server entity from client. How to check server entities to remove only client server? Or what I need to do, to remove this bug? Help, please!
Try ents.FindByClass("prop_ragdoll") and see if that works.
[QUOTE=Robotboy655;45572602]Try calling [url]http://wiki.garrysmod.com/page/game/RemoveRagdolls[/url][/QUOTE]
Also loot didn't remove("mu_loot" entity), how I can check, exists on server entity or not?
Sorry, you need to Log In to post a reply to this thread.