Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/Perception > API/Runtime/AIModule/Perception/UPawnSensingComponent
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/Perception/PawnSensingComponent.h |
| Include | #include "Perception/PawnSensingComponent.h" |
| Source | /Engine/Source/Runtime/AIModule/Private/Perception/PawnSensingComponent.cpp |
virtual bool CouldSeePawn
&40;
const APawn &42; Other,
bool bMaySkipChecks
&41; const
Remarks
Chance of seeing other pawn decreases with increasing distance or angle in peripheral vision true if the specified pawn Other is potentially visible (within peripheral vision, etc.) - still need to do LineOfSightTo() check to see if actually visible.
Parameters
| Name | Description |
|---|---|
| bMaySkipChecks | if true allows checks to be sometimes skipped if target is far away (used by periodic automatic visibility checks) |