• Setting ents color and noclide in raidus HELP
    3 replies, posted
So I am making it where when it spawns it waits 2 seconds then all the props around it, they nocolide with players, other props, and turn a different color, just like anti prop kill addons. I this is what I have so far [CODE] local EntsRadius = ents.FindInSphere(Vector(self:GetPos()),450) for k,v in pairs(player.GetAll()) do v = allplayersOnmap end for k, v in pairs(EntsRadius) do if !v:IsPlayer() then local entRadiusCol = v:GetColor() if v:GetClass() == 'thrown_ghoster' then else v:SetColor(90, 255, 0) constraint.NoCollide(self,vAll,1,1) constraint.NoCollide(v,allplayersOnmap,1,1) constraint.NoCollide(v,ents.GetAll(),1,1) timer.Create('GhostingLength',9,1,function() v:SetColor(entRadiusCol) end) end end end [/CODE] What it isn't doing right is 1. When it resets(To change everything back to normal such as the colors and noclides) it doesn't fix everything 2. Doesn't noclide with players and other props. Please help.
I don't think making a NoCollide constraint is the best way of going about this. You should call SetCustomCollisionCheck on the entity you want nocollided and return false in a ShouldCollide hook, instead.
No offence but I don't really know how to use those. Could you show me what you mean?
[QUOTE=ZeroToHero;51862167]No offence but I don't really know how to use those. Could you show me what you mean?[/QUOTE] Open the gmod wiki and search it...
Sorry, you need to Log In to post a reply to this thread.