What's the best way to make a prop permanent and unmoveable?

I’ve tried creating it as a prop_static, it didn’t work for a lot of props.

THEN I tried making its movetype MOVETYPE_NONE which worked somewhat; players collided with the props but if you spawned a prop and pushed it into it then it would go right through it. Upon that problem I tried changing it’s collision type but that didn’t work either. Also, whenever I did this, it seemed to “shed” it’s physical layer into another ghost entity (one that could not be seen nor interacted with with the toolgun/physgun/etc. All you could do with the “ghost entity” was collide with it, which, both props and players did.

So I want to know if there’s a “best” way to emulate a prop_static.

You could try this with a custom SENT.

[lua]
function ENT:Initialize()
self:StartMotionController()
end

local vecNone = Vector( 0, 0, 0 )
function ENT:PhysicsSimulate( phys, delta )
return vecNone, vecNone, SIM_GLOBAL_FORCE
end[/lua]

Just guessing, but might work.

Is there any way to do it without a custom SENT?

[lua]
Entity:GetPhysicsObject():EnableMotion(false)
[/lua]

Damn, I only browsed through the entity metatable, didn’t think of that. Seems like it does the job.

Thanks guys, that works perfectly. (The PhysObj one)