I managed to successfully script the swallow enemy. Now, there's something I need to do - I need to write the scripting command that allows the thread to get its own threadName.