How to use a Python script during runtime

Hello!
Me and my team are working on a project where we designed a game and now want to implement an AI that controls the player character and basically plays the game.
Our problem is that we want to write our AI in Python and haven’t been able to figure out how to use a Python script during runtime. All tutorials we found were only talking about using Python in the editor, which is not what we need.
It should work like this: the game “sends” information about the player character’s status to the Python script, the AI there makes some calculations, decides on the characters next action and “sends” this descision back to the game, where the player character acts as decided by the AI.
We would appreciate any help we can get because at the moment we are kind of stuck here and can’t progress in our project. Alternative suggestions on how to implement a self-written AI are welcome too :slight_smile:

You are describing what Yothon plugin can do. Take a look at Yothon on Epic Marketplace
If not useful for you (due to the time passed), maybe for the next reader.