PhysObj.EnableCollisions
From GMod Wiki
Function | |
Syntax | PhysObj:EnableCollisions( Boolean enable ) |
Description: | |
Enables or disables collisions for an object. This is more or less equivalent to calling ENT:SetSolid(SOLID_NONE). | |
Returns: | nil |
In Object: | Physobj |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=PhysObj.EnableCollisions]PhysObj.EnableCollisions [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |
Additional Notes
- While this does remove all interactions with the world entity and all other props when turned off, it remains solid and collisionary with the player models when attempting to pass through or walk upon it.