Loading AI scripts at runtime

Hello,
I am working on a simple game project which allow for AI based 1 vs 1 PVP. It is about programable tanks when each player can write they own AI script and load it into game. Scripts describe behavior of tanks, etc.
I am not sure how to handle runtime loading. There is many tutorials about AI but all are refered to creating behaviors in editor before project is builded.

Hello, Xender

Please note, that implementation of this functionality depends on specific factors, such as freedom of player in terms of scripting, which, in turn, will have a big impact on playability of the game and amount of potential bugs.

In the described situation, the most simple and effective way to provide the required fuctionality would be to start with creating Behavior Trees in the editor for some basic functionality of the tanks. For example, you can pick out some basic battle strategies and implement Behavior Trees for them. Thus, in the game, you can ask the player to choose between available strategies and load the appropriate behavior tree.
If you like to learn more about AI in Unreal Engine 4, please go here:

http://unreal-ai-tutorial.info/

Hope this helped! Have a great day!