Hey guys, I am trying to make this:
Point at the player.
I am aware that you use pose parameters for this, here is my current code:
function ENT:Think() self:SetPoseParameter( "aim_yaw", self.Owner:GetPos().x ) // -15 to 15 self:SetPoseParameter( "aim_pitch", 0 ) end
The issue is, I am not sure how to translate the players vector pos into an angle that the turret can use properly. Any help is appreciated!
Also, while this issue has been raised, whenever I use the self:Visible(self.Owner) the setting of the pose parameter becomes extremely jagged instead of smooth, anyone know why?