Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/AAIController
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/AIController.h |
| Include | #include "AIController.h" |
| Source | /Engine/Source/Runtime/AIModule/Private/AIController.cpp |
virtual bool LineOfSightTo
(
const AActor * Other,
FVector ViewPoint,
bool bAlternateChecks
) const
Remarks
Checks line to center and top of other actor true if controller's pawn can see Other actor.
Parameters
| Name | 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 |