Garry's Mod Wiki

NPC:SetIdealYaw

  NPC:SetIdealYaw( number angle )

Description

Sets the ideal yaw angle (left-right rotation) for the NPC. Does not actually force the NPC to start turning in that direction. See NPC:UpdateYaw, NPC:GetIdealYaw and NPC:SetIdealYawAndUpdate.

Arguments

1 number angle
The aim direction to set, the yaw component.