About Lua Script

#1
Hi,

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:

main.lua

Code: Select all

function OnInit() Script.ReloadScript("scripts/common.lua"); end
1) Where does the "Script" namespace come from?
2) And how does this script call work?
3) Do I necessarily need to use the GameSDK and its scripts?

Who is online

Users browsing this forum: No registered users and 5 guests