Entity.SetSolid

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetSolid]Entity.SetSolid [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes the entity solid when someone spawns it.
Used onNewerShared.png
Code
function ENT:Initialize( )
	self:SetSolid( SOLID_VPHYSICS )
end
OutputN/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
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox