Garry's Mod Wiki

NPC:SetFOV

  NPC:SetFOV( number fov )

Description

Sets the Field Of View of the NPC, for use with such functions as NPC:IsInViewCone. it is also used internally by the NPC for enemy detection, etc.

Arguments

1 number fov
The new FOV for the NPC in degrees.