
Originally Posted by
[b
Quote[/b] ]#loop
_camera cameraeffect ["internal", "back"]
_camera camsettarget plane1
_camera camsetrelpos [-2,10,3]
_camera camcommit 0
goto "loop"
Once I do this I get a good loop, but how to end it, e.g. after a period of time?
You could do it like this without any external variable, trigger or script by using the _time function:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>
Code Sample </td></tr><tr><td id="CODE">_delay = _time + 20.0; // how long the loop will run (20 seconds)
#loop
_camera cameraeffect ["internal", "back"]
_camera camsettarget plane1
_camera camsetrelpos [-2,10,3]
_camera camcommit 0
?_time < _delay : goto "loop";