Anyone have an idea on how to use this command....I have read the manual and taking a look at the level.c, and I keep running into a syntex error...which is now driving me nuts....

terrain_getpixel(ENTITY* terrain, var x, var y, BMAP* skin): COLOR*

I am using it as so
Code:
BMAP* _b = ent_getskin(ent,1);
COLOR* clr_b = terrain_getpixel(ent,ent.x+some_randnum,ent.y+somerandnum,_b);



Am I missing something ?


John C Leutz II