Hey guys. So, overall, the thread name is pretty self-explanatory. I need to make an if statement that checks an area in front of player for enemies which have a status effect on em (electrified in my case). I guess i'll need to check the 2d-array of tiles depending on the direction the player is facing. I'm famliar with coding, but have never dealt with lua before. Thus the question is - what are the functions to check an entity? P.S. Another question - is there a way to know if you hit someone with secondary ability?