Hello everyone,

I've started with gamestudio and just completed your tutorials. Well... I just ran into a problem.

I'm trying to learn the basics so i write really short scripts to see if and how they work. So that one day... =) Well, this one didn't work. Honestly, I don't see why.

/////////////////////////////
#include <acknex.h>
#include <default.c>
/////////////////////////////
function main();
function spawn_object();
/////////////////////////////
function main()
{
level_load("Test1.wmb"); //load the level
camera.z = 1000; //move the camera
camera.tilt = -90; //look "down"
wait(1);
}

function spawn_object()
{
ent_create("kugel.mdl", vector(0,0,0), NULL);
wait(1); //Not sure if this one is needed.
}

on_u = spawn_object();


Gamestudio does load the level, but pressing the button "u" doesn't create the model.
I've put all files (level, script, textures, models) in one directory.

Thank you for taking the time to look at my script.

---------------------------------------------------------

Hallo,
bin absoluter Anfänger mit Gamestudio und versuche mit kleinen Scripts c-lite zu erlernen. Mit obenstehendem Script habe ich ein kleines Problem - und weiß wirklich nicht woran es liegt. Hab schon im Handbuch nachgeschlagen, bin leider nicht auf den Fehler gestoßen. Zwar lädt das level, nur passiert nichts, wenn man die Taste "u" drückt.
Alle Dateien befinden sich in einem Ordner (level, texturen, model und scripte)

Bin für jeden Tipp dankbar.

Gruß,
SombodyNew