Garry's Mod Wiki

Garry's Mod Wiki

  table CreatePhysCollidesFromModel( string modelName )

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

1 string modelName
Model path to get the collision objects of.

Returns

1 sequental table<PhysCollide>
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.

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...