# Creature Sight range

**URL:** <https://discourse.cataclysmdda.org/t/creature-sight-range/18579>\
**Category:** The Toolbox\
**Created:** [January 28, 2019, 8:46am UTC](https://discourse.cataclysmdda.org/t/creature-sight-range/18579 "2019-01-28T08:46:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fris0uman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/fris0uman/32/8607_2.png) [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Post date:** [January 28, 2019, 8:46am UTC](https://discourse.cataclysmdda.org/t/creature-sight-range/18579/1 "2019-01-28T08:46:50Z")

</div>

So I’ve recently tried to make a terrain flag that affect sight ranges of player and other creature. It works for player : when you step on terrain with the flag your sight is reduced to 1 tile, but when I spawn a monster on the tile and stand more than 1 tile away I still get a `!` next to the monster name in the the `V` menu.

I’ve edited `Creature::sees( const tripoint &t, bool is_player )` , and `monster::sight_range( const int light_level )` . And here’s the [PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/27719)  
So my question is : what did I miss about creature sight ?

---

<div class="post-metadata">

**Author:** ![Fris0uman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/fris0uman/32/8607_2.png) [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Post date:** [January 28, 2019, 6:19pm UTC](https://discourse.cataclysmdda.org/t/creature-sight-range/18579/2 "2019-01-28T18:19:56Z")

</div>

After some more testing it turns out that it works. Spawning the monster directly on the tile was the mistake as monsters spawned on the tile don’t get the effect.
