Hi,
I've used 3D Gamestudio A7.07 and I've got a problem with a converted script from C-script to C-lite:
ENTITY* rood; //dutch for red
...
function roodlicht ()
{
set(rood,LIGHT);
rood.red = 255;
if (rood.lightrange == 600)
{
rood.lightrange = 0;
}
else
{
rood.lightrange = 600;
}
}
action rood_licht ()
{
rood = me;
}
function key_presses ()
{
on_t = roodlicht;
}
The idea is, when I press "T" the light become red, when I press "T" again, the light goes out. The action is attached to a model in the level wich load when the script start.
I hope you will help me
