Garry's Mod Wiki

Entity:SetCustomCollisionCheck

  Entity:SetCustomCollisionCheck( boolean enable )

Description

Marks the entity to call GM:ShouldCollide. Not to be confused with Entity:EnableCustomCollisions.

Make sure to use Entity:CollisionRulesChanged after changing this value. Otherwise it can cause crashes.

Arguments

1 boolean enable
Enable or disable the custom collision check