TheJokerMan 0 Posted September 27, 2006 hey sup all, i got this cool intro im making but i dont know how to end the loop after i get it started, heres the part of the code i got so far with the loop in it... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_cam camsettarget truck2 _cam camsetrelpos [0,-10,10] _cam camcommit 3 ~10 _delay = _time + 20.0 #loop _cam camSetRelPos [4,-10,2] _cam camCommit 0 goto "loop" _cam camsettarget jp4 _cam camsetrelpos [0,5,4] _cam camcommit 0 OK as you can see the loop starts on truck2, but i want it to end after about 20 seconds and the camera to be reset on jp4. How do I end the loop and set the camera on jp4? thx for any help! Share this post Link to post Share on other sites
Metal Heart 0 Posted September 27, 2006 This line you have apparently already copy pasted from somewhere: _delay = _time + 20.0 this is the time when the loop is supposed to end (_time returns seconds since script started, add 20 and that's 20 seconds later since the loop started) But you also need a condition on the goto "loop" like: ?_time < _delay : goto "loop" Share this post Link to post Share on other sites
TheJokerMan 0 Posted September 28, 2006 thanks buddy! that worked great Share this post Link to post Share on other sites