Skip to content
/ CVRLua Public

Mod that provides Lua scripting for ChilloutVR worlds

License

Notifications You must be signed in to change notification settings

SDraw/CVRLua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVRLua

Experimental mod that provides Lua scripting for ChilloutVR worlds.

How hard?

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.")
end

Scripting approach is kept very close to Unity's CSharp scripting. That means methods and properties of object(s)/component(s) are retained.

How to use?

  • For average users:
    • Download CVRLua.dll from latest release
    • Copy it into ChilloutVR/Mods folder
  • For world creators:
    • Download CVRLua_Editor.unitypackage from latest release
    • Import it into your world project
    • Add LuaScript component to your GameObject(s)

Scripting documentation

Visit wiki pages for in-depth information about scripting state and usage.
Project uses Lua 5.4.6 from Lua nuget package (v141).

Why?

Me when waiting for official game scripting: link
Also me: link