Hide actor for enemies only

I would like to hide an actor for enemies and not allies.

We are in multiplayers game with a dedicated server compiled with ue4 source code.

We have two teams composed with players. One player put a mine on the floor. The allies should see the mine, but not the ennemies.

How to hide this actor for ennemies only ?

dont spawn it for enemies at first place.i had a ping actor that alies should have seen so i get all actors and if they were same team(this logic lives in a bp with authoritative role ) then call a function to spawn that runs on Owning Client.

btw its totally ok if you dont spawn mine for enemies just when mine blown on server you play a sound and maybe spawn an emitter on all clients .if you think you need to spawn it for enemies then using logic above you can make a fuction on enemies client to hide actors but risk of hacking increases.

Ok, it is an excellent solution. I’ll try to implement this.
Thank you very much for your help.

It works.
I choose to hide the actor on the enemies clients since the actor owns explosion effect and sound.