From the Lite-C workshop 24 does this sample give the problem?
Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
var rotation_speed = 0.1;
function mother_earth()
{
while (1)
{
my.pan += rotation_speed * time_step;
wait (1);
}
}
function main()
{
vec_set(sky_color,vector(1, 1, 1)); // black sky
level_load ("");
wait (2); // wait until the level is loaded
ent_create("earth.mdl", vector(400, 0, 0), mother_earth);
}
Or this example inside the Workshop
Code:
////////////////////////////////////////////////////////////////////////////
// small.c - small lite-C example
////////////////////////////////////////////////////////////////////////////
#include <acknex.h> // include these predefined, needed files in our project
#include <default.c>
////////////////////////////////////////////////////////////////////////////
void main()
{
// Load the level named "small.hmp"
level_load("small.hmp");
// Wait for 3 frames, until the level is loaded
wait (3);
// Now create the "earth.mdl" model at x = 10, y = 20, z = 30 in our 3D world
ent_create("earth.mdl", vector(10, 20, 30), NULL);
// NULL tells the engine that the model doesn't have to do anything
}