CreatePhysCollidesFromModel

From Garry's Mod
Jump to: navigation, search
 CreatePhysCollidesFromModel( )

Description

Creates PhysCollide objects for every physics object the model has. The model must be precached with util.PrecacheModel before being used with this function.

Arguments

string modelName

Model path to get the collision objects of.

Returns

table

Table of PhysCollide objects. The number of entries will match the model's physics object count. See also Entity:GetPhysicsObjectCount. Returns no value if the model doesn't exist, or has not been precached.
Personal tools
Navigation