• Problem with an entity code
    1 replies, posted
[code]function ENT:Initialize() self:SetModel( self.Model ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self:SetUseType( SIMPLE_USE ) local phys = self:GetPhysicsObject() if (phys:IsValid()) then phys:EnableMotion( true ) end end [/code] How come this only enables motion when I touch it? Upon spawning the entity with a SWEP I made, it just stays in place until I touch it...
Call Wake() on phys
Sorry, you need to Log In to post a reply to this thread.