New Lua Scripting (#501)

* New Lua Scripting System

* Update Scripts

* Small fix on wiLua Globals

* Add One More Note To The New Demo

* -path fix
-renamed new_script_demo.lua to script_tracking.lua
-refactors
-version bump to 0.71.0

* removed GetScriptPath()

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
This commit is contained in:
Megumumpkin
2022-08-07 18:26:28 +07:00
committed by GitHub
parent a18810bfcb
commit da6a2e53ba
22 changed files with 297 additions and 48 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ backlog_post("---> START SCRIPT: move_object.lua")
scene = GetScene()
scene.Clear()
LoadModel("../models/teapot.wiscene")
LoadModel(script_dir() .. "../models/teapot.wiscene")
top_entity = scene.Entity_FindByName("Top") -- query the teapot lid object by name
transform_component = scene.Component_GetTransform(top_entity)
rest_matrix = transform_component.GetMatrix()