My question is -quite- simple. I was bored so I wanted to make a car entity: it is controlled by its’ owner like that:
local angles = self:GetOwner():EyeAngles() local carangles = self:GetAngles() self:SetAngles( Angle( carangles.p, angles.y, carangles.r ) ) if ( v:KeyDown( IN_FORWARD ) ) then -- TODO elseif ( v:KeyDown( IN_BACK ) ) then -- TODO end
I know, this system is bad but I don’t care about that. Basically, I want the car to move depending on its’ angles.