Garry's Mod Wiki

NPC:SetFOV

  NPC:SetFOV( number fov )

Recently Added

This was recently added in version (2024.12.03). It might only be available on the Dev Branch right now.

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.