Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How To Make Ai Run to dark or unlit areas.

sayansayan Member
edited October 2022 in Programming

Is there an efficient way to make an ai run to an area which does not have any light. So, if AI is near, or within light radius, it would just run away to darker areas that are visible nearby. Basically, the AI takes harm from light. And the player would try to run and catch the Ai with torch in hand and the Ai would constantly try to run away. I came up with an idea to have points scattered all over the map, and wherever there is light, the light radius would disable those points falling within, and when the light comes close to ai, the ai will search for nearby points that are available and move to it. But I wish there is a better more efficient way of doing this.

Sign In or Register to comment.