I cannot figure out what's wrong. I use this code
Code:
 // test.wdl

string str_level = <test.wmb>;

view camera2
{
pos_x = 0;
pos_y = 0;
layer = 1;
size_x = 200;
size_y = 100;
flags = visible;
}

function toggle()
{
camera2.visible = !(camera2.visible == on);
}


function main()
{
on_t = toggle;
level_load(str_level);
camera2.clip_far = 1000;
}



I have also compiled the level in a redistributable program. Can I mail it to you to reproduce the problem with my engine version (6.31.4)?