I am a C # programmer and have a question regarding C ++ / Lua, how do I create and use Lua scripts? In GameSDK there is a file "scripts.pak" that I have been trying to study. For example:
1) Where does the "Script" namespace come from?
Code: Select all
function OnInit() Script.ReloadScript("scripts/common.lua"); end
2) And how does this script call work?
3) Do I necessarily need to use the GameSDK and its scripts?