UPawnSensingComponent::CouldSeePawn

Chance of seeing other pawn decreases with increasing distance or angle in peripheral vision

Windows
MacOS
Linux

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

Syntax

virtual bool CouldSeePawn
(
    const APawn * Other,
    bool bMaySkipChecks
) const

Remarks

Chance of seeing other pawn decreases with increasing distance or angle in peripheral vision

Returns

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

Parameter

Description

bMaySkipChecks

if true allows checks to be sometimes skipped if target is far away (used by periodic automatic visibility checks)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss