I've tried that, it says "parameter unknown: scene".

Code:

entity* skysphere;

function scaled_sky()
{
proc_late(); // required to prevent odd effects from occurring
my.skill1 = 16; // change this to the scaling value you want - at 64, the area becomes 64 times larger than the model and at 4, it becomes 4 times larger than the model
skysphere = me;

while (!skysphere) // wait until pointer is valid
{
wait(1);
}

// my.scene = on;

while(1)
{
my.x=camera.x/my.skill1*(my.skill1-1);
my.y=camera.y/my.skill1*(my.skill1-1);
my.z=camera.z/my.skill1*(my.skill1-1);

/*
my.x = 4/camera.x; // play with the 16 and see what effect it has.
my.y = 4/camera.y; // at 64, the sky sphere should be 4 times bigger than with this
my.z = 4/camera.z; // at 4, the sky sphere should be 4 times smaller than this and 16 times smaller than if 64
*/
wait(1);
}
}

function main()
{
fps_max = 200; // gives me 64 fps in both fullscreen and windowed mode

wait(3);

level_load(samplelvl); // load the level
wait(3);

camera.x = -1024;
camera.y = -2560;
camera.z = 0;
camera.pan = 67.5; // face north-northeast at startup
skysphere = ent_createlayer("skysphere.mdl", scene, 3); // scene is an unknown parameter
scaled_sky();
wait(1); // registers this data
move_camera(); // allow for camera movement
}



As I said, it doesn't work.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials