Experimental mod that provides Lua scripting for ChilloutVR worlds.
Not that hard. You just add LuaScript component on your game object, add script(s) as TextAsset(s) to it and it's done.
-- HelloPlayer.lua example
function Start()
Log("Hello, "..localPlayer.name.."! This script is started on "..this.name.." gameObject.")
endScripting approach is kept very close to Unity's CSharp scripting. That means methods and properties of object(s)/component(s) are retained.
- For average users:
- Download
CVRLua.dllfrom latest release - Copy it into
ChilloutVR/Modsfolder
- Download
- For world creators:
- Download
CVRLua_Editor.unitypackagefrom latest release - Import it into your world project
- Add
LuaScriptcomponent to your GameObject(s)
- Download
Visit wiki pages for in-depth information about scripting state and usage.
Project uses Lua 5.4.6 from Lua nuget package (v141).
Me when waiting for official game scripting: link
Also me: link