Garry's Mod Wiki

Entity:SetTrigger

  Entity:SetTrigger( boolean maketrigger )

Description

Marks the entity as a trigger, so it will generate ENTITY:StartTouch, ENTITY:Touch and ENTITY:EndTouch callbacks.

Internally this is stored as FSOLID_TRIGGER flag.

Arguments

1 boolean maketrigger
Make the entity trigger or not