Improve invoke_lua_call and probe_lua_call, don't pass actor/place, better support for classname/funcname

This commit is contained in:
2025-02-26 15:58:12 -05:00
parent 72eda3026f
commit 23f6401a93
4 changed files with 56 additions and 52 deletions

View File

@@ -10,15 +10,17 @@ function tree.init(self, config)
wait(1)
end
function login.init(actor, place)
function login.init()
local actor = tangible.actor()
dprint("login.init:", actor)
local x = math.random(1, 100)
local y = math.random(1, 100)
tangible.animate(actor, nil, {bp="tangiblecharacter", action="warpto", plane="earth", xyz={x, y, 90}})
end
function engio.move(actor, place, action, xyz, facing)
function engio.move(action, xyz, facing)
-- todo: sanity check the parameters.
local actor = tangible.actor()
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
tangible.animate(actor, nil, {action=action, xyz=xyz, facing=facing})
end