Results 1 to 5 of 5

Thread: Freeze animation

  1. #1
    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
    MAsta_KFC~ The Supreme Being of Poultry.

  2. #2
    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.

  3. #3
    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'
    Whisper.
    OFrP member : http://ofrp.free.fr

  4. #4
    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 &#34;SAFE&#34;
    @unitReady player
    player playMove &#34;EffectStandSalute&#34;
    ~0.5
    soarCommander playMove &#34;EffectStandSalute&#34;
    ~1
    soarCommander playMove &#34;EffectStandSaluteEnd&#34;
    ~1
    player playMove &#34;EffectStandSaluteEnd&#34;[/QUOTE]<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 &#34;WhateverTheBinocularsAnimIs&#34;
    ~for a bit &#58;&#41;
    spotter stop false[/QUOTE]<span id='postcolor'>

  5. #5
    Ok, thanx guys, I&#39;ll give it a go.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •