Entity.SetCollisionGroup
From GMod Wiki
Function | |
Syntax | Entity:SetCollisionGroup( Integer collidegroup ) |
Description: | |
Sets the entity's collision group. It takes an integer that corresponds to a collision group enumeration. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetCollisionGroup]Entity.SetCollisionGroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Make the entity not collide with other entities. |
---|---|
Used on | |
Code | function DontCollide(ent) ent:SetCollisionGroup(COLLISION_GROUP_DEBRIS) end |
Output | N/A |
Additional Notes
- Don't use this in collision hooks! You'll get a lot of console warnings if you do.