Skip to content

five-on-it / packages/ai/src/perception / canSee

Function: canSee() ​

canSee(sim, npc, target, p): boolean

Defined in: packages/ai/src/perception.ts:98

Whether npc sees target as something to chase: a live target in its line of sight.

Parameters ​

sim ​

SimWorld

npc ​

number

target ​

number

p ​

BehaviourProfile

Returns ​

boolean