MAsta_KFC 0 Posted December 23, 2002 I'm currently making a mission where I wish a spotter in a sniper team keep his binoculars trained on a suspect. However, all of the playmove/switchmove animations end with the spotter putting away his binocs. I need him to keep his binocs up to his eyes. I've tried looping the 'binoccrouchtocrouch/binocstandtostand/binoclyingtolying' animations via script HOWEVER, due to the animation movement, the looping has the spotter slowly shifting to the left. After about 5 mins or so, he's nowhere near where he's meant to be. This is especially worse when he's on top of a building Does anyone have any ideas to solve this prob? I wish there would be a freezemove/resumemove command Share this post Link to post Share on other sites
SSG Plazmoid 0 Posted January 9, 2003 couple of ideas. you could setpos him every few cycles so he stays put where you want him. Or is there a way to have a have a unit use his binos. Sorry I don't know the script command to do that but I imagine there is one. Share this post Link to post Share on other sites
whisperFFW06 0 Posted January 9, 2003 You used the animations for passing from "binoc state" to "normal state" (standing/crouching/lying). It would probably be better to do the other way : from normal state to binoc state, so that unit finishes its movement in binoc state. NormalToBinoc effects : - CombatToBinoc - CrouchToBinocCrouch - LyingToBinocLying - StandToBinocStand Whis' Share this post Link to post Share on other sites
Liquid_Silence 0 Posted January 9, 2003 try the "stop" command: I've had some success using this with salute routines where I don't wanna use disableAI...e.g. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">soarCommander stop true soarCommander doWatch player player setBehaviour "SAFE" @unitReady player player playMove "EffectStandSalute" ~0.5 soarCommander playMove "EffectStandSalute" ~1 soarCommander playMove "EffectStandSaluteEnd" ~1 player playMove "EffectStandSaluteEnd"<span id='postcolor'> worked fairly well (if I remember correctly), so something like this should work: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">spotter stop true spotter playmove "WhateverTheBinocularsAnimIs" ~for a bit :) spotter stop false<span id='postcolor'> Share this post Link to post Share on other sites
MAsta_KFC 0 Posted January 13, 2003 Ok, thanx guys, I'll give it a go. Share this post Link to post Share on other sites