Code:


action rotate_plane()
{
while (1)
{
my.pan = my.pan + 2 * time_step;
wait (1);
}
}



Stick with the loop method - its works and theres really nothing wrong with doing it that way

The code in your picture will not work properly I don't think. Assigning functions to specific keys must be performed outside a function or action (at least with C-script), and "my" is an undefined pointer.

Yes, thats right, functions only run when they get called (the function "main" and starter functions run automatically)


Adoado.


Visit our development blog: http://yellloh.com