Nevermind, i found the right way, thanks to Uhrwerk

Code:
long typ;
my.material = *((MATERIAL**)engine_getvar("mat_model",&typ));