Ok so this is the code, this script i attatch to an object and drag the camera entity into the target.
Script.target = nil--Entity "camera"
local tposition = Vec3()
function Script:Start()
tposition = self.target:GetPosition()
tposition = Vec3(tposition.x,tposition.y,tposition.z)
self.entity:SetParent(self.target)
end
The object dissapears, ive tried offseting it from the camera but no show. If i set the target to another object in the editor it works fine.
Andy