I have a strange problem here.
I have created a Clientside prop and have added some entity functions to it, but for some reason, it doesn’t have any physics.
(physProp is just another prop, it basically clones the prop and ghosts it)
local prop = ents.CreateClientProp() prop:SetModel(physProp:GetModel()) prop:SetPos(physProp:GetPos()) prop:SetAngles(physProp:GetAngles()) prop:Spawn() prop:SetSolid(SOLID_VPHYSICS) -- below prop:SetMoveType(MOVETYPE_VPHYSICS) -- did I do anything wrong? prop:SetNotSolid(true) -- This method doesn't seem to do anything. If I remove it, it still can be walked through. prop:SetRenderMode(RENDERMODE_TRANSALPHA) -- below prop:SetColor(255,255,255,150) -- It's not transparent, and it's pink. prop:SetVelocity(Vector(1000,0,0)) -- nothing happens timer.Simple(4,function() prop:Remove() end)
How can I add physics to this entity?