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 Enums/FSOLID.

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 ) )

Page Links


Special Pages


Wikis

?

Render Time: 33ms

Session 0
DB GetPage 3
Generate Html 7
SaveChanges 9
Render Body 0
Render Sidebar 11