Gmod LUA Entity not reacting to physics

A Forum Thread for Garry's Mod 13

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Sweeny points.
  • Post: Give Sweeny your thoughts on this Thread.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.


Sign up

Already a Bananite? Login

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 Offline
Member Joined 4y
3,121 points Ranked 1495th
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
3y tracking pixel