Gmod LUA Entity not reacting to physics

A Forum Thread for Garry's Mod 13

Im working on a Ammo base entity. the ammo receive thingy is working fine the only problem is that its hovering in mid air (not reacting to gravity other props worl etc) when i move the entity per Physgun its physicmodel is working properly anyway as soon as i let go with the physgun it remains hovering. heres my init.lua (shared shouldnt be important) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:SpawnFunction( ply, tr ) if ( !tr.Hit ) then return end local SpawnPos = tr.HitPos + tr.HitNormal * 16 local ent = ents.Create(self.EntName) ent:SetPos( SpawnPos ) ent:Spawn() ent:Activate() return ent end function ENT:Initialize() self:SetModel(self.model) //self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetAngles(Angle(0,0,0)) self:DrawShadow( true ) self.Available = true self:SetAnimation(ACT_VM_IDLE) self:SetCollisionGroup( COLLISION_GROUP_DEBRIS ) self:SetRenderMode( RENDERMODE_NORMAL ) print( "[SWEENYSOURCE] Succesfully spawned " ..self.EntName) end i hope heres someone who knows more about lua then me and can help me out function ENT:Think()...etc <-- Unimportant


None found


Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:


Sweeny avatar
Sweeny Joined 5y ago
3,121 points Ranked 1622nd
16 medals 2 rare
  • 3rd Place - Sci-Fi Skinning Contest Medal icon
  • Reached 50 subscribers Medal icon
  • GameBanana Around the Globe Contest Entrant Medal icon
  • 1-5 Entries! GameBanana’s Christmas Giveaway 2014 Medal icon
  • 5th Place - Halloween Skinning Contest 2014 Medal icon
  • Became a Studio Leader Medal icon

Sign up to access this!
Sign up to access this!
Sign up to access this!


Sign up to access this!



  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+


  • 0 Posts
  • 4y Submitted
  • 4y Modified

More from Submitter

WiPs by Submitter tracking pixel