Skip to main content
Cleanup
Source Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

How to implement NPC that reads player input reading, are there any examples out thereand counters it?

input reading = NPC reads the input of the player and instantly reacts to counter everything the player does.

soSo, is it like :

if player in range and key is being pressed : 
   
Npc reaction 

isIs that right? whatWhat would happen if there more players? is it as easy as getting the input of the closest player?

and whatWhat ways are there to predict the input of players? likeLike say some players are spamming dodge and parry like DarkSouls is their middle name, how do I make the enemy NPC adapt to player patterns?

input reading, are there any examples out there?

input reading = NPC reads the input of the player and instantly reacts to counter everything the player does.

so, is it like :

if player in range and key is being pressed : 
   
Npc reaction 

is that right? what would happen if there more players? is it as easy as getting the input of the closest player?

and what ways are there to predict the input of players? like say some players are spamming dodge and parry like DarkSouls is their middle name, how do I make the enemy NPC adapt to player patterns?

How to implement NPC that reads player input and counters it?

input reading = NPC reads the input of the player and instantly reacts to counter everything the player does.

So, is it like :

if player in range and key is being pressed : 
   
Npc reaction 

Is that right? What would happen if there more players? is it as easy as getting the input of the closest player?

What ways are there to predict the input of players? Like say some players are spamming dodge and parry like DarkSouls is their middle name, how do I make the enemy NPC adapt to player patterns?

Source Link
Cei
  • 873
  • 8
  • 21

input reading, are there any examples out there?

input reading = NPC reads the input of the player and instantly reacts to counter everything the player does.

so, is it like :

if player in range and key is being pressed : 
   
Npc reaction 

is that right? what would happen if there more players? is it as easy as getting the input of the closest player?

and what ways are there to predict the input of players? like say some players are spamming dodge and parry like DarkSouls is their middle name, how do I make the enemy NPC adapt to player patterns?