Garry's Mod Wiki

NPC:SetIdealYawAndUpdate

NPC:SetIdealYawAndUpdate( number angle, number speed = -1 )

Just Added

This was just added in the latest version (2020.06.24). It might only be available on the Dev Branch right now.

Description

Sets the ideal yaw angle (left-right rotation) for the NPC and forces them to turn to that angle.

Arguments

1 number angle
The aim direction to set, the yaw component
2 number speed = -1
The turn speed. Special values are:

  • -1 - Calculate automatically
  • -2 - Keep the previous yaw speed

Page Links


Special Pages


Wikis

?

Render Time: 40ms

DB GetPage 6
Generate Html 3
SaveChanges (1) 14
Render Body 0
Render Sidebar 13