Entity.SetSolid
From GMod Wiki
Revision as of 15:36, 30 October 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax | Entity:SetSolid( Integer solidtype ) |
Description: | |
Sets the solid type the entity is using. Solidtype should correspond to a solid enumeration. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetSolid]Entity.SetSolid [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Makes the entity solid when someone spawns it. |
---|---|
Used on | |
Code | function ENT:Initialize( ) self:SetSolid( SOLID_VPHYSICS ) end |
Output | N/A |
Additional Notes
SHARED | 0000000000000000 | 00000000000000000 | SOLID_NONE SHARED | 0000000000000001 | 00000000000000001 | SOLID_BSP SHARED | 0000000000000002 | 00000000000000010 | SOLID_BBOX SHARED | 0000000000000003 | 00000000000000011 | SOLID_OBB SHARED | 0000000000000004 | 00000000000000100 | SOLID_OBB_YAW SHARED | 0000000000000005 | 00000000000000101 | SOLID_CUSTOM SHARED | 0000000000000006 | 00000000000000110 | SOLID_VPHYSICS