Code:
//=================================================================================================================================
//                                                                                                                               //
//                                                     DAS MAINSCRIPT                                                            //
//                                                     ^^^^^^^^^^^^^^                                                            //
//                                                                                                                               //
//=================================================================================================================================
//                                                                                                                               //
//                                          EINBINDEN DER UNTERORDNER UND SCRIPTS                                                //
//                                          """""""""""""""""""""""""""""""""""""                                                //
//                                                                                                                               //
//=================================================================================================================================
#include <acknex.h>
#include <default.c>

//=================================================================================================================================
//                                                                                                                               //
//                                                         PANELS                                                                //
//                                                         """"""                                                                //
//                                                                                                                               //
//=================================================================================================================================


//=================================================================================================================================
//                                                                                                                               //
//                                                       FUNKTIONEN                                                              //
//                                                       """"""""""                                                              //
//                                                                                                                               //
//=================================================================================================================================
function lichttest()
{
	my.lightrange = 1000;
	my.x = 0;
	my.y = 0;
	my.z = 200;
	set(my, SHADOW | CAST);
}

function test()
{
	set(my, SHADOW);
}


//=================================================================================================================================
//                                                                                                                               //
//                                                        AKTIONEN                                                               //
//                                                        """"""""                                                               //
//                                                                                                                               //
//=================================================================================================================================

//=================================================================================================================================
//                                                                                                                               //
//                                                     DAS MAINSCRIPT                                                            //
//                                                     """"""""""""""                                                            //
//                                                                                                                               //
//=================================================================================================================================

function main()
{
	fps_max = 60;
	video_mode = 8;
	d3d_antialias = 9;
	video_set(1024,768,32,0);
	video_window(vector(10,10,NULL),NULL,2,"Test");
        // shadow_stencil = 2;
	level_load("Editor.wmb");
	sky_color.red = 1;
	sky_color.green = 1;
	sky_color.blue = 1;
	wait(3);
	shadow_stencil = 2;
	mouse_mode = 0;
	
	ent_create("dummy.mdl",vector(150,150,1000),test);
	ent_create(NULL,vector(0,0,156),lichttest);
}



dummy.mdl is just a sphere model with a blue skin... simple to make by your own ^^


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<