Entity/SetSolidFlags

From Garry's Mod
Revision as of 02:34, 6 May 2019 by Code gs (Talk | contribs)
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

Set self as a trigger (the same as SetTrigger):

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


Personal tools
Navigation