• Remove a specific prop in a map?
    3 replies, posted
Is it possible via LUA to remove all of a specific prop in a map on startup? The model I wish to remove from a map is models/props_wasteland/exterior_fence003b.mdl Any help would be appreicated. Cheers. SeeDee
[lua] local function RemoveAllFencesOnStart() for k,v in pairs(ents.GetAll()) do if v:GetModel() == "models/props_wasteland/exterior_fence003b.mdl" then v:Remove() end end end hook.Add("InitPostEntity","RemoveAllFencesOnStart",RemoveAllFencesOnStart) [/lua] Enjoy :smile:
But, if it is an prop_static, it wont work!
I love requests like these.
Sorry, you need to Log In to post a reply to this thread.