• shouldcollide breaking physics
    0 replies, posted
I'm trying to make a team nocollide with every other team, but something keeps breaking the physics. [code]hook.Add("ShouldCollide","NCPlayers",function(a,b) if a:Team() == TEAM_PRISONER_GHOST and b:IsPlayer() then return false else return true end  end) [/code] Whenever a player from TEAM_PRISONER_GHOST touches another player, props start falling through the floor and weapons just bounce around. It's weird because this seems to not cause any issues, but it makes all players nocollide with each other and not just one team. [code]hook.Add("ShouldCollide","NCPlayers",function(a,b) if a:IsPlayer() and b:IsPlayer() then return false else return true end  end)[/code]
Sorry, you need to Log In to post a reply to this thread.