# Is Locally Controlled function returns false on client's controlled local pawn

**URL:** <https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200>\
**Category:** Multiplayer & Networking\
**Tags:** event-begin-play, unreal-engine, Multiplayer, bug-report, pawn, question\
**Created:** [April 15, 2015, 11:32pm UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200 "2015-04-15T23:32:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![oti2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oti2](https://forums.unrealengine.com/u/oti2)\
**Post date:** [April 15, 2015, 11:32pm UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200/1 "2015-04-15T23:32:13Z")

</div>

I saw a bug similar to this posted late last year, but it was marked resolved due to inactivity. In some of my prototyping, I noticed that _Is Locally Controlled_ incorrectly returns false on a client’s local controlled pawn when called on _Event Begin Play_, but correctly returns true when called from a listen server’s controlled pawn. If _Is Locally Controlled_ is called from another run-time event on client, it then returns true. I have attached blueprints I used to produce this with a single client connected to a dedicated server, but results for multiple clients and/or when connected to a listen server are same. This has only been performed by launching game instances from UnrealEd and not individually from binary executables. Let me know if there is anything else I can provide!

![38935-event_graph_locallycontrolledbool.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/c/50cf1c0ffb8f11094a491fd151d4ffd710f0d0f7.jpeg)

---

<div class="post-metadata">

**Author:** ![oti2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oti2](https://forums.unrealengine.com/u/oti2)\
**Post date:** [April 15, 2015, 11:53pm UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200/2 "2015-04-15T23:53:59Z")

</div>

4.7.5 - Apologies for not appending resolved report.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [April 16, 2015, 4:45pm UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200/3 "2015-04-16T16:45:41Z")

</div>

Hi oti2,

I believe what you’re experiencing is a delay between Begin Play on pawn and possession of pawn by Client’s controller. pawn is created on Server and Client before all Clients are fully logged in, so this delay makes sense. If you use a Delay node with about 1 second, you should see it return True, as you’ve given it time to be possessed by Client’s controller.

A better way to do this (because relying on a Delay when you don’t know exact amount of time it will take for Client to log in and possess pawn) is to use EventPostLogin in GameMode. From here, you can call events and functions in other classes, such as Player Controller (which might be a better place for this type of thing. IsLocallyControlled is better used as a check after Clients already have their controllers assigned and their pawns possessed.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aca08b68](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aca08b68](https://forums.unrealengine.com/u/anonymous_user_aca08b68)\
**Post date:** [December 20, 2016, 6:40am UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200/4 "2016-12-20T06:40:04Z")

</div>

call it after EventBeginPlay,for example call it in EventTick

---

<div class="post-metadata">

**Author:** ![WixZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WixZ](https://forums.unrealengine.com/u/WixZ)\
**Post date:** [February 1, 2017, 7:42pm UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200/5 "2017-02-01T19:42:27Z")

</div>

What you can also do is use event tick. First do a branch checking if pawn is controlled. If yes, then do a branch to check if pawn is locally controlled. Then, do your thing.

For example, here i used this method in one of my own projects to hide a text render for each player but only locally. I didn’t want player to see his own name tag above his head so what i did was each time a pawn is possesed by a player pawn’s textrender gets hidden. When a pawn is no longer possesed do once gets reset so when potentially another player possesses pawn textrender can get hidden again for that client but not for others.

 ![124534-c61069c817f283124158d2376c09dc5b.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/d/3bd7774c8a5a35493230a191822b376e57559aa9.png)

---

<div class="post-metadata">

**Author:** ![loh0123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@loh0123](https://forums.unrealengine.com/u/loh0123)\
**Post date:** [August 14, 2021, 9:38am UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200/6 "2021-08-14T09:38:00Z")

</div>

call it after on possessed for better because it run one time.(After pawn has been possessed)

Begin Play Call from pawn has been create.Possessed Call after server has done assign controller to pawn.

P.S : Some one correct me if i was wrong (Thank You).

![346275-temp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/b/d8bdd92362ff0f04c32994e6260e06fbc9e9bd31.png)

---

<div class="post-metadata">

**Author:** ![AlexKvandersson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexKvandersson](https://forums.unrealengine.com/u/AlexKvandersson)\
**Post date:** [August 16, 2021, 11:17am UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200/7 "2021-08-16T11:17:02Z")

</div>

@wixZ WixZ solution is great, I would change using Is Is Controlled to Is Player Controlled, as in my case Is Controlled wasn’t working on remote simulated proxies, so there would be no way to find out on simulated clients when they were ready. Cheers

---

<div class="post-metadata">

**Author:** ![AlexKvandersson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexKvandersson](https://forums.unrealengine.com/u/AlexKvandersson)\
**Post date:** [August 16, 2021, 11:17am UTC](https://forums.unrealengine.com/t/is-locally-controlled-function-returns-false-on-clients-controlled-local-pawn/315200/8 "2021-08-16T11:17:03Z")

</div>

WixZ solution is great, I would change using Is Is Controlled to Is Player Controlled, as in my case Is Controlled wasn’t working on remote simulated proxies, so there would be no way to find out on simulated clients when they were ready. Cheers
