Modding Help Check if an entity in front of player has a status effect

Discussion in 'Starbound Modding' started by lerdarim, Oct 14, 2017.

  1. lerdarim

    lerdarim Void-Bound Voyager

    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?
     
    Last edited: Oct 14, 2017

Share This Page