# Stopping "Set Actor Hidden In Game" from Replicating to client automatically

**URL:** <https://forums.unrealengine.com/t/stopping-set-actor-hidden-in-game-from-replicating-to-client-automatically/302640>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 29, 2014, 9:49pm UTC](https://forums.unrealengine.com/t/stopping-set-actor-hidden-in-game-from-replicating-to-client-automatically/302640 "2014-12-29T21:49:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kilrogg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kilrogg](https://forums.unrealengine.com/u/Kilrogg)\
**Post date:** [December 29, 2014, 9:49pm UTC](https://forums.unrealengine.com/t/stopping-set-actor-hidden-in-game-from-replicating-to-client-automatically/302640/1 "2014-12-29T21:49:07Z")

</div>

“Set Actor Hidden In Game” seems to be automatically replicated back to the client if its executed on the server. I imagine this is part of the built-in actor replication in the engine, but I need actors to have separate hidden states on each client based on whether their units are in range/line of sight of the other player’s units, etc.

I can work around this by manually hiding the mesh and other components instead of hiding the entire actor, but I was wondering if there’s an easy way to stop Set Actor Hidden In Game from replicating since that would be easier and cleaner.

Here’s the quick test I set up to verify this. When I press F, the unit disappears from all players.

 ![25118-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/5/795b2d08e895167c7ff4258f79e4822d45eaebe7.png)

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_02360bb5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_02360bb5](https://forums.unrealengine.com/u/anonymous_user_02360bb5)\
**Post date:** [January 15, 2015, 3:39pm UTC](https://forums.unrealengine.com/t/stopping-set-actor-hidden-in-game-from-replicating-to-client-automatically/302640/2 "2015-01-15T15:39:07Z")

</div>

Hey, im having the same issue, i don’t think it’s possible to stop it from replicating in blueprint. The way i do it, is i have a isVisible bool set to rep notify and inside the OnRep function i check for hasAuthority( i want remote) and isLocallyControlled (i want is not ) and set actor hidden in game to isVisible. You don’t have to manually check every mesh this way, hope it helps.

---

<div class="post-metadata">

**Author:** ![Kilrogg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kilrogg](https://forums.unrealengine.com/u/Kilrogg)\
**Post date:** [January 15, 2015, 3:48pm UTC](https://forums.unrealengine.com/t/stopping-set-actor-hidden-in-game-from-replicating-to-client-automatically/302640/3 "2015-01-15T15:48:36Z")

</div>

I ended up putting all the stuff I want to hide under the same parent component and just using Set Visibility (with Propagate to Children checked) instead and it works fine.
