I think engine_getvar is what he meant to use.