so i want NPCs to run to the player, and then decide to either block attack or parry
the NPC can also choose to do one of 3 skills
I’m not sure where to start/ what method I should use. Would bettertrees module / behaviour trees be the best method?
so i want NPCs to run to the player, and then decide to either block attack or parry
the NPC can also choose to do one of 3 skills
I’m not sure where to start/ what method I should use. Would bettertrees module / behaviour trees be the best method?
I would make NPCS go to the closest player within a certain range(if no one is whithin the certain range then the NPCS can wander around.)
To make the NPCS go to there are 2 options:
Option 1: Humanoid:MoveTo(), this does a straight line, perfect for a flat map.
Option 2: Pathfinding, more complicated and sometimes looks funny, but Pathfinding is better if there are obstacles in the map
For using the skills I would recommend doing or a random generator from 1-3 or a weighted average system.
if player can do gun/ranged attacks npc could just chaotically move left/right and randomly spamming jump and overall dodging the attack unless they are within close range