• Advanced Dup Ghost Props (props that cannot be selected or removed)
    3 replies, posted
Hey guys, I'm having an issue and I was hoping for some advice. I have used the Adv Dup to move some props around a scene I am making. However, once I save, sometimes those props cannot be physgunned, clicked, or altered in anyway. You can pass through them, but they are stuck that way. They are quite a nusiance. Has anyone heard of this issue, or has this happened to you? Is there a way to delete ghost props? I have uninstalled and reinstalled Adv Dup and Wiremod to no avail. Thanks so much, guys!
Try entering this into your console: [code]lua_run for id, ent in pairs(ents.FindByClass("prop_p*")) do if (ent:GetSolid() != 6) then print(ent:GetSolid(),ent) end end[/code] Something like that should appear: [img]http://i.imgur.com/vgdAznc.png[/img] If the number of lines that appear match the amount of ghost props, then run this: [code]lua_run for id, ent in pairs(ents.FindByClass("prop_p*")) do if (ent:GetSolid() != 6) then ent:SetSolid(6) end end[/code] To make the props intractable, or this: [code]lua_run for id, ent in pairs(ents.FindByClass("prop_p*")) do if (ent:GetSolid() != 6) then ent:Remove() end end[/code] To remove them. This is assuming your props are actual prop physics. If this doesn't work, try replacing [b]"prop_p*"[/b] in the code with [b]"prop_*"[/b] ( ents.FindByClass("prop_p*") to ents.FindByClass("prop_*") )
[QUOTE=Robotboy655;50466474]Try entering this into your console: [code]lua_run for id, ent in pairs(ents.FindByClass("prop_p*")) do if (ent:GetSolid() != 6) then print(ent:GetSolid(),ent) end end[/code] Something like that should appear: [img]http://i.imgur.com/vgdAznc.png[/img] If the number of lines that appear match the amount of ghost props, then run this: [code]lua_run for id, ent in pairs(ents.FindByClass("prop_p*")) do if (ent:GetSolid() != 6) then ent:SetSolid(6) end end[/code] To make the props intractable, or this: [code]lua_run for id, ent in pairs(ents.FindByClass("prop_p*")) do if (ent:GetSolid() != 6) then ent:Remove() end end[/code] To remove them. This is assuming your props are actual prop physics. If this doesn't work, try replacing [b]"prop_p*"[/b] in the code with [b]"prop_*"[/b] ( ents.FindByClass("prop_p*") to ents.FindByClass("prop_*") )[/QUOTE] It didn't work RB, but I appreciate you helping me out. When I ran the first command, the "for id, ent in pairs" command showed up but not the "0 Entity [##][prop_physics] I changed the "Prop_p*" value and restarted but to no avail. The props I am trying to delete are two construction plates and a table. Command lines simply say "] lua_run for id, ent in pairs(ents.FindByClass("prop_p*")) do if (ent:GetSolid() != 6) then print(ent:GetSolid(),ent) end end > for id, ent in pairs(ents.FindByClass("prop_p*")) do if (ent:GetSolid() != 6) then print(ent:GetSolid(),ent) end end..." Thanks again, RB!
[code]lua_run for id, ent in pairs(ents.GetAll()) do if (ent:GetModel() != "models/my/model/here.mdl") then print(ent:GetSolid(),ent) end end[/code] Try this. replace the model path with your model you want to delete. ( Right click on spawnicon of the model and press "Copy to clipboard" )
Sorry, you need to Log In to post a reply to this thread.