Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AController
Description
Handles attaching this controller to the specified pawn. Only runs on the network authority (where HasAuthority() returns true). Derived native classes can override OnPossess to filter the specified pawn. When possessed pawn changed, blueprint class gets notified by ReceivePossess and OnNewPawn delegate is broadcasted.
| Name | Possess |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Controller.h |
| Include Path | #include "GameFramework/Controller.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Controller.cpp |
UFUNCTION (BlueprintCallable, BlueprintAuthorityOnly, Category=Pawn,
Meta=(Keywords="set controller"))
virtual void Possess
(
APawn * InPawn
)
Parameters
| Name | Remarks |
|---|---|
| InPawn | The Pawn to be possessed. |
See Also
-
HasAuthority
-
OnPossess
-
ReceivePossess