Would I be able to make the enemies in a game a duplicated player character, with the ai USING the players controls depending on if what’s happening around them (F to parry if it sees something about to attack them but with maybe some chance they don’t press the key?) I’m new to ai and am just wondering if this is possible before I do more research
You should separate your code so that you have a function parry() that does your parry logic.
Then you can use keyboard input, e.g. with InputAction bound to an F key, to trigger the function. And you can also write your AI logic so that whenever the attack is about to happen, the AI triggers parry function, with a chance of failing.
You shouldn’t try to make AI using the Input system, you can cut a corner and make it directly use the function.