Method of driving a sent like a boat

I have been trying to make a sent drivable like a boat im new to sents this is my first one so i know that i should be using ENT:PhysicsSimulate and i have tryed so many codes and they all fail can anyone give me a bit of help

[lua]
function ENT:PhysicsSimulate( phys, deltatime )
if !self.Pilot:IsValid() then return end
if self.Inflight then
local num=0
if self.Pilot:KeyDown(IN_FORWARD) then
num=2000
else

	end
	phys:Wake()
		self.Accel=math.Approach(self.Accel,num,10)
		if self.Accel>-200 and self.Accel < 200 then return end
	local info={}
		info.secondstoarrive	= 1
		info.pos				= self.Entity:GetPos()+self.Entity:GetForward()*self.Accel
		info.maxangular		= 5000
		info.maxangulardamp	= 10000
		info.maxspeed			= 100000
		info.maxspeeddamp		= 10000000
		info.dampfactor		= 
		info.teleportdistance	= 5000
		info.angle		= self.Pilot:GetAimVector():Angle()
		if self.Pilot:KeyDown(IN_SPEED) then
			pr.angle=self.Entity:GetAngles()
		end
		info.deltatime		= deltatime
	phys:ComputeShadowControl(pr)
	phys:EnableGravity( true )
	end

end
[/lua]

Looks like your statement is indeed not correct. Now that I look back on you all, I find it funny how I even got involved with you all Facepunch dickheads.

I have over 20 more alt accounts blended in better than a communist in 1960’s New York so cut off one head, and two more shall take its place.

Baldur out :smiley: