col_kurtz1979 0 Posted May 4, 2003 Im making a cutscene where a soldier put on his binoculars. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> mySoldier playmove "LyingToBinocLying" <span id='postcolor'> The trouble with this animation is that it only lasts about 2 seconds and after that he takes his binoculars off again! This is annoying I need the ai soldier to put on the binoculars and keep them on. Can anyone help??? Share this post Link to post Share on other sites
waffendennis 0 Posted May 4, 2003 are you using it in a WP or just in the init field of the ai? well i sugest to try a waypoint and set the time out on 5seconds or what ever you whant and you will see he is doing 5sec's that animation i hope this helped Share this post Link to post Share on other sites
Milkman 1 Posted May 4, 2003 this might help, its a script. Named "binocs.sqs" </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(true1) goto more #loop mysoldier playmove "LyingToBinocLying" goto loop #more exit<span id='postcolor'> in the units waypoint, init, trigger, whatever field, put </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[] exec "binocs.sqs"<span id='postcolor'> True 1 is a trigger that when set off will tell the soldier to stop. This is all in theory though. just try it out. Â Share this post Link to post Share on other sites
col_kurtz1979 0 Posted May 5, 2003 Thanks guys, but the waypoint option is no good because the soldier just plays through the animation as before, 5 secs dont make any difference. The same goes with the "binocs.sqs", the soldier starts the animation but then loops it again over and over. i.e he puts on the binoculars, takes them off then puts them on again..........etc My own solution was to play the animation once, then when it gets to the point where he is looking through the binoculars slow the time down to milliseconds </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">setacctime 0.001<span id='postcolor'> then when hes done, just set the acctime back to normal. Share this post Link to post Share on other sites