native
is_in_viewcone
Syntax
native is_in_viewcone(entity, const Float:origin[3], use3d = 0);
Description
SDK function - checks if an origin is in an entity's view cone
Set use3d to 1 to do the calculation in 3D. Otherwise it will be in 2D.