Is it possible to allow the player to execute Lua scripts in game while playing?

I am thinking about trying to implement a way for players to code bots in my world that do simple tasks like pick up, drop, move x amount of spaces in xy plane to automate whatever needs to be done. If anyone has ever played Minecraft mods think of something like ComputerCraft where players can input Lua code into a bot and have it mine/drop items off at certain locations. Is it possible to have some kind of code interpreter to allow the player this level of functionality? All I saw was Luabridge but am still getting familiar with that.

As far as i know, this is not possible, im sure there are other ways to do such a task however.

It is definitely possible, although probably a lot of work.

Have a look into LuaMachine

Juste like blueprints, any UPROPERTY and UFUNCTION can be exposed to the Lua script side, so it should have the same capabilities. At runtime.

1 Like

Thanks! Ill look into that and update this thread if this fits my usecase