Improve invoke_lua_call and probe_lua_call, don't pass actor/place, better support for classname/funcname
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user