Jump to content
Sign in to follow this  
col_kurtz1979

Put on the binoculars

Recommended Posts

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 mad.gif

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

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 smile.gif i hope this helped biggrin.gif

Share this post


Link to post
Share on other sites

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.  wink.gif

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×