15 lines
410 B
Lua
15 lines
410 B
Lua
|
|
local dbg
|
|
if moddebug then dbg=moddebug.dbg("people") else dbg={v1=function() end,v2=function() end,v3=function() end} end
|
|
|
|
people.actions.step = function(state)
|
|
local event = {type="step", dtime=state.dtime}
|
|
local err = people.exec_event(self, event)
|
|
if err then dbg.v1(state.ent.name ..":Lua error "..err) end
|
|
state.yaw = self.env.yaw
|
|
state.speed = self.env.speed
|
|
return false
|
|
end
|
|
|
|
|