Unfortunately no, because there is no direct way to access the flags element in C-Script. I'm not sure that this was the reason of your problem anyway - your problem description sounds different. But you can send or upload your project also and I'll check.