# Line of sight on enemies

**URL:** https://forum.makecode.com/t/line-of-sight-on-enemies/5930
**Category:** Arcade
**Created:** [February 2, 2021, 9:24pm UTC](https://forum.makecode.com/t/line-of-sight-on-enemies/5930 "2021-02-02T21:24:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MasterOfTheYeets](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@MasterOfTheYeets](https://forum.makecode.com/u/MasterOfTheYeets)
#### Post date: [February 2, 2021, 9:24pm UTC](https://forum.makecode.com/t/line-of-sight-on-enemies/5930/1 "2021-02-02T21:24:40Z")

</div>

I was wondering if there was a way to add a line of sight on enemies. Like if I put a wall in between me and an enemy it wouldn’t be able to see me, so it wouldn’t come to me around the wall.  
Help plz.  
thx.  
Yeets out

---

<div class="post-metadata">

### Author: ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)
#### Post date: [February 2, 2021, 11:41pm UTC](https://forum.makecode.com/t/line-of-sight-on-enemies/5930/2 "2021-02-02T23:41:06Z")

</div>

[Sneaking Demo](https://forum.makecode.com/t/sneaking-demo/4961)
