Please don’t post walls of plain-text, always use code-tags . This isn’t a 2D issue so isn’t relevant here but there’s a dedicated forum for MLAPI which is easy to find here.
I’m happy to move your post but I would recommend editing it to use code-tags above.