Parenting Volumetric Light to Light?

I’d like to have it so that when you spawn the industrial lamp, one of the volumetric light objects (64x128) will spawn with it, and move with it, this all works but the industrial lamp does not spawn where I’d like it to. The problem is the industrial lamp isn’t being moved to the correct position. What code would I use to correct this?

[lua] function ENT:SpawnFunction(ply, tr) – Spawn function needed to make it appear on the spawn menu
if (!tr.HitWorld) then return end
ent = ents.Create(“weed_industrial_light”) – Create the entity
ent:SetPos(tr.HitPos + Vector(0, 0, 30)) – Set it to spawn 30 units over the spot you aim at when spawning it
ent:Spawn()-- Spawn it
pos = ent:GetPos()
return ent – You need to return the entity to make it work
end

function ENT:Initialize()
vollight=ents.Create(“prop_physics”)
vollight:SetModel(“models/props_c17/light_industrialbell01_on.mdl”)
vollight:Spawn()
vollight:SetPos(Vector( pos ))
self.Entity:SetModel(“models/effects/vol_light64x128.mdl”)
self.Entity:SetParent( vollight )
local phys = self.Entity:GetPhysicsObject()
if (phys:IsValid()) then
phys:Wake()
end
end[/lua]

try
[lua]function ENT:SpawnFunction(ply, tr) – Spawn function needed to make it appear on the spawn menu
if (!tr.HitWorld) then return end
ent = ents.Create(“weed_industrial_light”) – Create the entity
ent:SetPos(tr.HitPos + Vector(0, 0, 30)) – Set it to spawn 30 units over the spot you aim at when spawning it
ent:Spawn()-- Spawn it
pos = ent:GetPos()
return ent – You need to return the entity to make it work
end

function ENT:Initialize()
vollight=ents.Create(“prop_physics”)
vollight:SetModel(“models/props_c17/light_industrialbell01_on.mdl”)
vollight:SetPos(self.Entity:GetPos())
vollight:Spawn()
self.Entity:SetModel(“models/effects/vol_light64x128.mdl”)
self.Entity:SetParent( vollight )
local phys = self.Entity:GetPhysicsObject()
if (phys:IsValid()) then
phys:Wake()
end
end[/lua]

That worked, but it’s a bit off still, how would I adjust it so they line up better?

vollight:SetPos(self.Entity:GetPos())
Change this line to vollight:SetPos(self.Entity:GetPos() + Vector(1,2,3)) changing the 1,2 and 3 to the appropriate numbers to move it about. (x,y,z)

Alrighty, thank you much.