Hi all, trying to get a script to work but I am having problems:
Code
<action name="previewscene">
inc(view.hlookat,45);
trace(view.hlookat);
set(v1,view.hlookat);
trace(get(v1));
lookto(get(v1),45,35,smooth(100,20,50));
</action>
Display More
The trace is in there as I am trying to see what value is passed to lookto. The value in v1 is correct but the lookto command causes the flash screen to go blank.
Now if I put the following code in it all works fine. It obviously has something to do with the view.hlookat variable:
Code
<action name="previewscene">
set(v1,45);
trace(get(v1));
lookto(get(v1),45,35,smooth(100,20,50));
</action>
Any help would be appreciated.
Cheers,
Marcus