Unknown
From DarkAI
AI
GET ENTITY CAN SEE
This command will return if the
entity can see the specified point. If the entity is ducking, or
Height is 0 then half height
objects will register as blocking the entity's view. This command
will return which view angle the point is in, if it can be seen, in
the order specified below. If the point is beyond the entity's view
range (see AI Set Entity View Range)
then 0 will be returned.
Syntax
return
integer = AI Get Entity Can See ( Entity Number, X#, Z#, Height
)
Parameters
Entity Number, The id of the
entity you want to know can see.
X#, The
X position of the point to see.
Z#,
The Z position of the point to see.
Height,
1 if the point to see is at eye level, above half height objects, 0
if low.
Return
2 if the the point is within
the inner view arc, 1 if the point is within the outer view arc, 0 if
the point cannot be seen.