is_in_viewcone

Синтаксис

native is_in_viewcone(entity, const Float:origin[3], use3d = 0);

Употреба

entity
Entity index
origin
Origin
use3d
If zero the calculation will ignore the z axis (height), if
nonzero it is done in 3D

Описание

Returns if an origin is in an entities view cone. Derived from SDK.

Забележка

This uses the entities EV_FL_fov value in the calculations and applies
it on all axes. It might be unreliable depending on the use-case.

Връщаща стойност

1 if origin is in view code, 0 otherwise