[lua]shared.lua:447: bad argument #2 to ‘__sub’ (Angle expected, got userdata)[/lua]
Here is the code in the file that I have been trying to figure out what is wrong:
[lua] if self.Owner:KeyPressed(IN_JUMP) then
if self.Owner:GetNWInt(“FATIG_TIRED”) == 1 then
return false
end
if not self.Owner:OnGround() then
if self.Owner.Hanging == false and not self.Weapon:CanGrab() then
if self.Owner.UsedTimes >= 2 then
local trace = self.Owner:GetEyeTrace()
if trace.HitPos:Distance(self.Owner:GetShootPos()) <= 50 then -- Wall-jump using W/A/D
if self.Owner.HasWallJumped == false then
if self.Owner:KeyDown(IN_FORWARD) then
self.Owner:SetNWInt("FATIG_AMOUNT", math.Clamp(self.Owner:GetNWInt("FATIG_AMOUNT") - math.random(6,9), 0, 100))
if SERVER then
self.Owner:SetEyeAngles(self.Owner:EyeAngles() - Vector(0, 180, 0)) --Here is the line that's supplying the error.447 is here
self.Owner:SetLocalVelocity(self.Owner:GetForward() * -375 + Vector(0, 0, 75))
end[/lua]
Any help is appreciated.