The Game Modding Community - Since 2001

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 4y ago
3,121 points Ranked 1534th
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!



Date Added
Date Modified


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

SEX! Ok, we got your attention. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Resistance is futile... Sign up now!

Already a Bananite? Login

WiPs by Submitter tracking pixel