In the manual it says to return 1 from the material event to prevent the entity from being rendered. I have set ENABLE_RENDER and have a dummy technique just like in the manual (http://manual.conitec.net/prog_faq.htm).

Why does the entity still render itself?! I have tested it in C++ and LiteC. In C++ I tried as 1 and 1024 (_VAR(1)).