Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
MAsta_KFC

Freeze animation

Recommended Posts

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

Does anyone have any ideas to solve this prob? I wish there would be a freezemove/resumemove command sad.gif

Share this post


Link to post
Share on other sites

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×