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")endSee the lua processes guide for more examples and limits.