ents.CreateClientProp
Description
Creates a clientside only prop. See also ClientsideModel.
For physics to work you must use the model argument, a simple SetModel
call will not be enough.
Parented clientside prop will become detached if the parent entity leaves the PVS. A workaround is available on its github page.
Issue Tracker: 861
Issue Tracker: 861
Arguments
1 string model = "models/error.mdl"
The model for the entity to be created.
Model must be precached with util.PrecacheModel on the server before usage.
Returns
Example
Creates a clientside prop at the player location.
Example
Creates a clientside prop with physics.
concommand.Add( "testent", function( ply )
local plyTr = ply:GetEyeTrace()
local csEnt = ents.CreateClientProp( "models/props_combine/combine_light001b.mdl" )
csEnt:SetPos( plyTr.HitPos + plyTr.HitNormal * 24 )
csEnt:Spawn()
end )