Entity/SetSolidFlags

From Garry's Mod
Jump to: navigation, search
 Entity:SetSolidFlags( )

Contents

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

number flags

The flag(s) to set, see FSOLID_ Enums.

Examples

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


Personal tools
Navigation