Download

How make enemy player see your character only in range of sight?

How make enemy player see your character only in range of sight? For example with circle range of sight or linear depending on blocking objects. In some games this is just part of fog of war.

See https://docs.unrealengine.com/latest/INT/BlueprintAPI/AI/Perception/index.html for the new AI Perception system, or http://unreal-ai-tutorial.info/index.php/9-blueprint-ai/11-t04-basic-perception for the old Pawn Sensing.

so how can i achieve this? how make one pawn’s static mesh visible for yourself and invisible for others on condition? is here any function like “set pawn static mech visibile for player”?

Why you need to do that? an easy fix its placing an invisible box in front of your character where you want that player to see others. and when that box hit another player set to visible.
Here you have a picture. Im not in my workstation so y improvised some nodes with paint.net for the blueprint logic.
f538e0e87b9f27f6d65fa598937293fb753850cb.png
That works for your case?

trigger box ; you can specific examine actor property to decide to add or remove cull mask to camera