I think I'm slowly going somewhere :
|
Quellcode
|
1
|
lookto(x,y,field,smooth(100,100,100))
|
is blocking so that view.hlookat is not updated until lookto is done
|
Quellcode
|
1
2
|
lookto(x,y,field,smooth(100,100,100),true,true);
nextaction();
|
is nonblocking : view.hlookat is updated while lookto is running.
However, in this case, since it is nonblocking, nextaction() is executed while the lookto is running, so that it's a mess. I've tried :
|
Quellcode
|
1
|
lookto(x,y,field,smooth(100,100,100),true,true,WAIT)
|
to wait for the end of the lookto action but it doesn't work.
right now the only solution I have is :
|
Quellcode
|
1
2
|
lookto(x,y,field,smooth(100,100,100),true,true);
delayedcall(2.0,nextaction());
|
but that's really not satisfying, because I don't know what the delay must be : it depends on how long the lookto action could last, and that is unknown.
What I nead is some way to wait until the lookto action is ended.
Right now I've no idea how to do this