Files
integration/luprex/lua/login.lua

17 lines
555 B
Lua
Raw Normal View History

makeclass('login')
makeclass("engio")
2021-06-02 15:00:14 -04:00
2024-02-27 17:32:08 -05:00
function login.initialize(actor, place)
dprint("login.initialize:", 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}})
2024-02-27 17:32:08 -05:00
end
2021-06-02 15:00:14 -04:00
2024-02-07 15:59:17 -05:00
function engio.move(actor, place, action, xyz, facing)
-- todo: sanity check the parameters.
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
tangible.animate(actor, nil, {action=action, xyz=xyz, facing=facing})
2024-02-07 15:59:17 -05:00
end