Skip to content

alive

Check whether a process handle is still live. Available as alive after import_globals() or mv.process.alive.

Parameters

  • handle — A process handle.
if alive(enemy) then
print("still here")
end

Related: kill, status.

See the lua processes guide for more examples and limits.