# Warning: UNetDriver::ProcessRemoteFunction: No owning connection for actor

**URL:** <https://forums.unrealengine.com/t/warning-unetdriver-no-owning-connection-for-actor/1254445>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, question\
**Created:** [August 8, 2023, 10:22am UTC](https://forums.unrealengine.com/t/warning-unetdriver-no-owning-connection-for-actor/1254445 "2023-08-08T10:22:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ackyshacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ackyshacky/32/600284_2.png) [@ackyshacky](https://forums.unrealengine.com/u/ackyshacky)\
**Post date:** [August 8, 2023, 10:22am UTC](https://forums.unrealengine.com/t/warning-unetdriver-no-owning-connection-for-actor/1254445/1 "2023-08-08T10:22:40Z")

</div>

This issue has been discussed in various threads, but I seem to be confused why I’m getting this warning for my particular application.

I am getting this warning:

> LogNet: Warning: UNetDriver::ProcessRemoteFunction: No owning connection for actor X1\_BP\_C\_1. Function SetCombatState will not be processed.

I have the following functions called on the CLIENT side:

```auto
void AShooterCharacter::StartFireTimer()
{
	CombatState = ECombatState::ECS_FireTimerInProgress;
	SetCombatState(ECombatState::ECS_FireTimerInProgress);

	GetWorldTimerManager().SetTimer(AutoFireTimer, this, &AShooterCharacter::AutoFireReset, 3.f);
}

void AShooterCharacter::AutoFireReset()
{
	CombatState = ECombatState::ECS_Unoccupied;
	SetCombatState(ECombatState::ECS_Unoccupied);
}

```

- CombatState is a replicated variable
- SetCombatState is a SERVER RPC (which sets the CombatState to all other clients)

Now here is what’s happening. When the `StartFireTimer()` function is called, there is no ‘No owning connection for actor’ warning for the first RPC. However, when second RPC is called in `AutoFireReset()`, the warning appears. What’s even stranger is that even though the warning appears for the second RPC, the RPC still runs successfully anyway.

Note that I am possessing the actor in the PlayerController on the SERVER (which I believe sets the owner correctly).  
So what is going on here?

---

<div class="post-metadata">

**Author:** ![ackyshacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ackyshacky/32/600284_2.png) [@ackyshacky](https://forums.unrealengine.com/u/ackyshacky)\
**Post date:** [August 8, 2023, 12:17pm UTC](https://forums.unrealengine.com/t/warning-unetdriver-no-owning-connection-for-actor/1254445/2 "2023-08-08T12:17:45Z")

</div>

Ok, I think I figured it out…I had to put a `IsLocallyControlled()` check before calling the RPC…Weird that I had to do this since this is called only on the local client, but ok.

---

<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:** [September 7, 2023, 12:18pm UTC](https://forums.unrealengine.com/t/warning-unetdriver-no-owning-connection-for-actor/1254445/3 "2023-09-07T12:18:31Z")

</div>

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