Garry's Mod

Garry's Mod

Wiremod
AntiCake 1 Feb, 2014 @ 5:04am
applyAngForce problems
before i reinstalled gmod applyAngForce was forking fine. after that its spazzing out and its the same code as before the reinstall? Wtf? The Code:

@inputs Gun:entity
@persist Ang:angle
runOnTick(1)

findByClass("players")
F = find()

Pitch = Gun:elevation(F:pos())
Yaw = Gun:bearing(F:pos())
Roll = angle():roll()/15
Ang = -ang(Pitch,Yaw,Roll)
Gun:applyAngForce((Ang + $Ang*5)*Gun:mass()*15)


I even watched a tutorial about it.