Knowledge Base: Using the Replicated SubObjects List

Hello, I’m using the COND_NetGroup and FNetConditionGroupManager to replicate subobjects only to some clients.

Now, when I add the players to the same netgroup of the subobject via APlayerController::IncludeInNetConditionGroup all works as it should and the subobject is created and replicated to the client. The problem is that when I remove the player from the netgroup using APlayerController::RemoveFromNetConditionGroup, while the object properties stops from being replicated, the object itself is not destroyed on the client.

There’s some way to let the client know he’s no more part of that netgroup so that I can destroy the object manually or trigger some cleanup code on the client side? Or should I do it manually by storing for example a replicated array of the player netgroups on the client?