NPC AI interacting with FSM (movement, actions, whatever)
Hello,
Sorry if this is a dumb question.
For context I want each actor to have a FSM for things that a FSM makes sense to solve like movement, and I want a player to be able to swap between certain Actors in a party system. Except, how do I have an AI interact with that system?
The only idea I could think of is that each state could have a list of their potential transitional states, a function to query those states for the AI to call, and the function that handles inputs can either take in the players input (say spacebar for jump) or the AI's input (just the Jump Enum). Is that a reasonable method, or is there a more obvious solution?