ok.. before everyone sais more things to let me think, that you think i´m stupid:

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

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


//=================================================================================================================================
//                                                                                                                               //
//                                                       FUNKTIONEN                                                              //
//                                                       """"""""""                                                              //
//                                                                                                                               //
//=================================================================================================================================
function lichttest()
{
	my.lightrange = 1000;
	my.x = 500;
	my.y = 500;
	my.z = 800;
	set(my, SHADOW | CAST);
//	while(1)
//	{
//		if(editorgogo == 0)
//		{
//			vec_set(my.x,player.x);
//			my.y += 100;
//			my.z += 400;
//		}
//		wait(1);
//	}
}

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");
	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("Charakter_human_Template_2.mdl",vector(150,150,1000),test);
	ent_create(NULL,vector(0,0,156),lichttest);
	
	wait(1);
	hud_update();
	wait(1);
}



i tried with shadow_stencil = 2; before the level_load too..


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