Hi,

I would like to load some entities into my level with a script. I created a new WDL file and I included it, where the othere "include"s are. Then I wanted to call my level load function at the end of the main function, but when I run the game I get an error:


My function looks like this:
Code:
 
function loadlevel()
{
ent_create("feld1.wmb", vector(0,-1024,-128));
ent_create("feld1.wmb", vector(0,1024,-128));
ent_create("wand1.wmb", vector(-992,0,64));
ent_create("wand1.wmb", vector(992,0,64));
}



If I comment out the "loadlevel();" line in the main function it works. Whats wrong?


_______________________________________________ GameStudio 6 Extra Edition Processor: 2.80 Ghz RAM: 2046MB Graficcard: Radeon X600 256MB DOWNLOAD PONG FIGHT