Entity.SetNotSolid
From GMod Wiki
Function | |
Syntax | Entity:SetNotSolid( Boolean NotSolid ) |
Description: | |
If NotSolid is true, all collisions and traces are disabled on the entity. All props, players, the World, and traces (toolguns, physguns) will pass through the entity. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetNotSolid]Entity.SetNotSolid [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Using this means that the Entity:Use() will not fire when a player uses the object (the trace will pass through). If you want to retain Use functionality, look into alternatives like Entity.SetCollisionGroup to allow players to pass through while still being able to use the entity. (useful for SENTs)