Valheim Wiki
Advertisement

Cover determines when players are sheltered and affects behavior of some structures.

Cover is calculated by checking how many of the 17 cover rays are blocked by obstacles. Each ray starts 0.5 meters from the structure cover point and extends to 29.5 meters (30 meters from the cover point).

Cover rays always have the same orientation that doesn't depend on the structure rotation. The directions are:

  • Directly upwards.
  • 8 cardinal directions on a horizontal plane.
  • 8 cardinal directions at 45 degrees between horizontal and vertical plane.

Roof is checked by finding a non-leaky material directly above within 100 meters.

The implementation has several quirks:

  • When very close to walls/roof, some cover lines may start outside the wall/roof (completely ignoring the roof/wall).
  • Same building with a different orientation may have a different cover because cover lines always have the same orientation.
  • Buildings with a very large open area may end up without cover.
  • Terrain, trees or rocks may cause unexpected cover.

Affected structures[]

Advertisement