Posing a Ragdoll through Lua

Is this possible? Because i need for the ragdoll to be in a certain position which isn’t a normal animation.

override BuildBonePositions on the ragdoll and do stuff there

Thanks

[editline]05:59PM[/editline]

…targate vehicles\lua\entities\control_chair\init.lua:298: attempt to call method ‘SetBonePosition’ (a nil value)

Im getting this error now while calling the above function. Here’s my code:
[lua]function ENT:RagdollSpawn()

if(ValidEntity(self)) then
	if(ValidEntity(self.Pilot)) then
		local e = ents.Create("prop_physics")
		e:SetModel(self.Pilot:GetModel())
		e:SetPos(self.Chair:GetPos())
		e:SetAngles(self:GetAngles()+Angle(0,-90,0))
		e:Spawn()
		e:Activate()
		e:SetOwner(self)
		e:SetParent(self)
		e:GetPhysicsObject():EnableMotion(false)
		constraint.NoCollide(e,self.Chair,0,0)
		self.Ragdoll=e
		self:SetBonePos()
		print(self:LookupBonePos())
	end
end

end

function ENT:SetBonePos()

if(ValidEntity(self.Ragdoll)) then
	self.Ragdoll:SetBonePosition( 1, self.Chair:GetPos()+self.Chair:GetUp()*25, self:GetAngles()+Angle(-45,0,0))
end

end
[/lua]

Shouldn’t that be a prop_ragdoll entity, rather than prop_physics?