Create a new Lua entity and call C++ code to interact with it
It's time to write some code of our own. But before we can start writing the C++ code, we will first learn some Lua basics. Let us first begin by creating a simple Lua entity that teleports the player to a different position. Later, we will extend this entity to execute the C++ code.
Let's get started!