ClientsideModel

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

Contents

Description

Creates a non physical entity that only exists on the client. See also ents.CreateClientProp.

BUG

Parented clientside models will become detached if the parent entity leaves the PVS.

Issue Tracker: #861

BUG

Clientside entities are not garbage-collected, thus you must store a reference to the object and call CSEnt:Remove manually.

Issue Tracker: #1387

BUG

Clientside models will occasionally delete themselves during high server lag.

Issue Tracker: #3184

Arguments

string model

The file path to the model.

WARNING

Model must be precached with util.PrecacheModel on the server before usage.

Arguments

number renderGroup=RENDERGROUP_OTHER

The rendergroup of the entity, see RENDERGROUP_ Enums.

Returns

CSEnt

Created client-side model. ( C_BaseFlex )
Personal tools
Navigation