Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameplayStatics
Description
Determines if any local player controller's camera is within range of the specified location.
This will always return false on dedicated servers.
| Name | IsAnyLocalPlayerCameraWithinRange |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintPure, BlueprintCosmetic, Category="Game",
Meta=(WorldContext="WorldContextObject"))
static bool IsAnyLocalPlayerCameraWithinRange
(
const UObject * WorldContextObject,
const FVector & Location,
float MaximumRange
)
Parameters
| Name | Remarks |
|---|---|
| Location | The location from which test range |
| MaximumRange | The distance away from Location to test range |