look into default.c but so far i see your post (and postcount) are you new here so i would do the tutorial do the tutorials if i were you. http://tutorial.3dgamestudio.net/ after them you should be able to do it yourself, if not post the code, which u are using and explane what it do and what it should do. xxxxxxx
Es ist immer wieder erstaunlich, dass Leute die riesen Scripte schreiben die einfachsten sachen nicht können zb. mich mit SIEBEN x zu schreiben!