APawn::ReceiveUnpossessed
#include "GameFramework/Pawn.h"
Access: public
Specifiers: UFUNCTIONBlueprintImplementableEventBlueprintAuthorityOnly
Description
Blueprint event fired on the server/authority when a controller stops possessing this pawn. Implement in Blueprint for authority-side cleanup on unpossession.
Caveats & Gotchas
- • BlueprintAuthorityOnly — does not execute on clients. Use `ReceiveControllerChanged` if you need both server and owning-client notification.
- • Called from inside `UnPossessed`; if `Super::UnPossessed()` is not called in a C++ override, this event will not fire.
Signature
void ReceiveUnpossessed(AController* OldController) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| OldController | AController* | The controller that previously possessed this pawn. | — |
Return Type
void Example
Blueprint: disable HUD on unpossession text
Event ReceiveUnpossessed → Get HUD → Set Visibility Hidden See Also
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?