Garry's Mod Wiki
Entity:EnableCustomCollisions()
Description
Flags an entity as using custom lua defined collisions. Fixes entities having spongy player collisions or not hitting traces, such as after Entity:PhysicsFromMesh
Internally identical to Entity:AddSolidFlags( bit.bor( FSOLID_CUSTOMRAYTEST, FSOLID_CUSTOMBOXTEST ) )
Do not confuse this function with Entity:SetCustomCollisionCheck, they are not the same.
Example
Creates a mesh table, and assigns it as the entity's collisions
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...