SENT Can't be used or shot?

When I shoot my sent, the bullets go through. When I try to use it, it doesn’t even play the sound like I tried to use something.

What would cause this?

Did you set this?

Sounds like what setting that causes.

Can you walk through it also?

Make sure your SEnt is initializing its physics under the Initialize() hook.

[lua]
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_NONE )
self:SetSolid( SOLID_VPHYSICS )

local phys = self:GetPhysicsObject()

if (phys:IsValid()) then
	phys:Wake()
end

[/lua]

Excluding some of these commands can cause some funky results. I had a problem like this at one point, and i think it was the phys:Wake() part. It was awhile ago, so i don’t remember exactly.

you can change the ‘MOVETYPE_’ to one of these.

That code was a direct copy/paste from a sent i wrote for a gamemode, it wasn’t meant to be moveable.

God damn it, you’re right. I derped.

Someone give me a Lua King.