Garry's Mod Wiki

NextBot:IsAbleToSee

  boolean NextBot:IsAbleToSee( Entity ent, number useFOV = true )

Description

Returns if the Nextbot NPC can see the give entity or not.

Using this function creates the nextbot vision interface which will cause a significant performance hit!

Arguments

1 Entity ent
The entity to test if we can see
2 number useFOV = true
Whether to use the Field of View of the Nextbot

Returns

1 boolean
If the nextbot can see or not