Skip to content

Sein Fog Visibility Data

Struct · FSeinFogVisibilityPayload : FSeinPayload

Parent: Sein Component Data

#include "Components/SeinFogVisibilityPayload.h"

deterministic: safe in simulation code

Sein Fog Visibility Data: how an entity appears to fog of war. Fog Visibility Policy sets whether it stays visible after being revealed, and Fog Visibility Layer Mask sets which vision layers can see it. Every entity has one; set the values on the entity’s Fog Visibility fields.

ESeinFogVisibilityPolicy FogVisibilityPolicy · default ESeinFogVisibilityPolicy::VisionLayersOnly

Editable in defaults and on instances · Blueprint read and write

Persistence policy for what happens AFTER this entity is revealed: VisionLayersOnly (default) — visible only while currently spotted. Standard for enemy units. VisibleOnceSeen — visible after a source has actually spotted THIS ENTITY once; stays as a “ghost” after. Something appearing in already-explored-but-unseen fog stays hidden until genuinely seen. Standard for enemy buildings (explored-terrain memory). VisibleOnceExplored — visible once the entity’s CELL has been explored, even if the entity itself was never seen; coarser “intel from terrain” reveal. AlwaysVisible — bypasses the fog hide check entirely. Walls and landmarks, persistent destructibles, self-occluding effects (their stamp blocks vision but the actor still renders).

uint8 FogVisibilityLayerMask · default 0xFE

Editable in defaults and on instances · Blueprint read and write

Which observer fog-of-war layer bits actually see this entity. An observer’s vision query on a given layer bit only “spots” this entity if its mask is non-zero in that bit. Independent of FogVisibilityPolicy (policy = persistence after reveal; this = who can reveal in the first place).

Default 0xFE (all bits set except Explored / E, which is sticky- reveal and shouldn’t grant initial spotting). Designers narrow this for stealth / camo units (e.g. set to N0 only; only observers stamping the N0 layer can see it). The runtime mutation BPFLs (SeinSetEntityEmissionMask / SeinAddEntityEmissionLayers / SeinRemoveEntityEmissionLayers) flip these bits at ability time for cloak / detect mechanics.