# APawn::UnPossessed for owning client?

**URL:** <https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942>\
**Category:** C++\
**Tags:** unreal-engine, question, CPP, Blueprint\
**Created:** [December 28, 2024, 10:10pm UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942 "2024-12-28T22:10:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ADIAN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adian/32/1194609_2.png) [@ADIAN](https://forums.unrealengine.com/u/ADIAN)\
**Post date:** [December 28, 2024, 10:10pm UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942/1 "2024-12-28T22:10:08Z")

</div>

Possessed and Unpossessed events called only on server, but i also need for owner client. For possessed i found ReceiveRestarted that suits me. I’m creating widget for client when possessed and wanna delete it when unpossessed. I can’t find any remotely similar to Unpossessed for client. Why is that so difficult?

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 29, 2024, 6:58am UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942/2 "2024-12-29T06:58:52Z")

</div>

a RunOnClient RPC should be fine after the possessed event

---

<div class="post-metadata">

**Author:** ![ADIAN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adian/32/1194609_2.png) [@ADIAN](https://forums.unrealengine.com/u/ADIAN)\
**Post date:** [December 29, 2024, 7:06am UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942/3 "2024-12-29T07:06:39Z")

</div>

Nah, its unnecessary rpc call, and timing is bad.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 29, 2024, 7:30am UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942/4 "2024-12-29T07:30:32Z")

</div>

well if im understanding you right, the only other option is set a bIsPossessed on RepNotify?

---

<div class="post-metadata">

**Author:** ![ADIAN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adian/32/1194609_2.png) [@ADIAN](https://forums.unrealengine.com/u/ADIAN)\
**Post date:** [December 29, 2024, 7:38am UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942/5 "2024-12-29T07:38:44Z")

</div>

I was thinking about it, but in the end, i don’t wanna deal with secondary replicated properties or rpc’s in general. I think i found what i need, its AController::OnRep\_Pawn() that contains OnPossessedPawnChanged delegate but behaviour is weird. Its called twice on server but once on client. idk, i will try overriding OnRep with Interfaces. yolo

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 29, 2024, 7:42am UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942/6 "2024-12-29T07:42:29Z")

</div>

what calls for possession in the first place?  
ie if the player is choosing a Character then you can handle you spawn widget at that point

---

<div class="post-metadata">

**Author:** ![ADIAN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adian/32/1194609_2.png) [@ADIAN](https://forums.unrealengine.com/u/ADIAN)\
**Post date:** [December 29, 2024, 7:50am UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942/7 "2024-12-29T07:50:41Z")

</div>

In my game, Possession/Unpossession can happen in alot of places. I don’t want to call creation/deletion of a widget in all these places, in addition i have alot of logic. It’s better for me have a nice entry/exit logic close together in one place.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/f/a4f559da8027b0daf36b7ef3a76627b431c3386b.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 28, 2025, 7:51am UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942/8 "2025-01-28T07:51:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
