Garry's Mod Wiki

NPC:UpdateYaw

  NPC:UpdateYaw( number speed = -1 )

Description

Forces the NPC to turn to their ideal yaw angle. See NPC:SetIdealYaw and NPC:SetIdealYawAndUpdate.

Arguments

1 number speed = -1
The turn speed. Special values are:
  • -1 - Calculate automatically
  • -2 - Keep the previous yaw speed