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

Posts

None found

Embed

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

Author

Sweeny avatar
Sweeny Joined 5y ago
Offline
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

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

Game

Sign up to access this!

Category

Share

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

Stats

  • 4,472 Views
  • 0 Posts
  • 4y Submitted
  • 4y Modified

More from Submitter

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel