Garry's Mod Wiki

NextBot:IsAbleToSee

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

Just Added

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

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

Page Links


Special Pages


Wikis

?

Render Time: 69ms

DB GetPage 37
Generate Html 8
SaveChanges (1) 10
Render Body 0
Render Sidebar 12