Garry's Mod Wiki

Entity:SetSolidFlags

  Entity:SetSolidFlags( number flags )

Description

Sets solid flag(s) for the entity.

This overrides any other flags the entity might have had. See Entity:AddSolidFlags for adding flags.

Arguments

1 number flags
The flag(s) to set, see FSOLID enum.

Example

Mimics Entity:SetTrigger call on the entity and adds FSOLID_USE_TRIGGER_BOUNDS flag to it.

ent:SetSolidFlags( bit.bor( FSOLID_TRIGGER, FSOLID_USE_TRIGGER_BOUNDS ) )