AController::LineOfSightTo

Checks line to center and top of other actor

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Controller.h

Include

#include "GameFramework/Controller.h"

Source

/Engine/Source/Runtime/Engine/Private/Controller.cpp

Syntax

virtual bool LineOfSightTo
(
    const class AActor * Other,
    FVector ViewPoint,
    bool bAlternateChecks
) const

Remarks

Checks line to center and top of 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. If vect(0,0,0) passed in, uses current viewtarget's eye position.

bAlternateChecks

used only in AIController implementation

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