Changing pos of bomb

I have changed it and have this now:

HOW DO I MAKE IT SO IT LOOKS LIKE A BOMB PLANTED ON DOOR? So it’s not going through door?

init.lua:

function ENT:Initialize()

self:SetModel("models/props_lab/reciever01d.mdl");
self:PhysicsInit(SOLID_VPHYSICS);

self:SetMoveType(MOVETYPE_NONE);
self:SetSolid(SOLID_VPHYSICS);

	

    local phys = self:GetPhysicsObject()
		if (phys:IsValid()) then
			phys:Wake()
		end
end

Also the last end ends Initialize

[editline]22nd September 2015[/editline]

if ( ent:GetClass() == “prop_door_rotating” ) then
if ( ply:GetPos( ):Distance( ent:GetPos() ) < 120 ) then

			if SERVER then
			local entB = ents.Create( "door_breach_active" )
			entB:SetPos(  ent:WorldSpaceCenter()   )
			entB:SetAngles( ent:GetAngles()  )
			entB:SetOwner( self:GetOwner() )
			
			entB:Spawn()
			
			self:Remove()
			end
			
			
			
			
			
		end
	end

[editline]22nd September 2015[/editline]

Sorry, just the server I’m coding for is coming out in 1 hour.

first of all, I dont know why the owners let you code for them, if you cant even actually code, look in the PD2 bank robbery addon, in the drills, its that easy, the code is small as hell, and use CODE tags.

Got it all done xD turns out my gmod private was fucked up . Angle didn’t work I validated and it’s working now :slight_smile: