ID:270345
 
How would you code battaling someone in the east direction to a certain view length?
please help thanks.
You can check what direction the attacker is facing by using get_dir(), and you can get the range by using get_dist().