UPawnSensingComponent::HasLineOfSightTo

Check line to other actor.

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 HasLineOfSightTo
(
    const AActor * Other
) const

Remarks

Check line to other actor.

Returns

true if controller's pawn can see Other actor.

Parameters

Parameter

Description

Other

is the actor whose visibility is being checked.

ViewPoint

is eye position visibility is being checked from.

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