Hello dear friends!
There was a question and I don't know how to solve it. The essence:
Player character is being chased by npc.
It is necessary that when the npc (opponent) intersects with the player's character, for example, he loses. I can't figure out how to implement this.
If this can be implemented using LUA, could you please post an example of such a script? Thank you in advance.