Pause for melee attack

Discussion in 'Modding' started by Przemek_kondor, Jun 25, 2018.

  1. Przemek_kondor

    Przemek_kondor New Member

    Hi,
    I've been told that calculation I use on Units Stats might be incorrect for melee units due to ignoring (assuming these are equal) attack pause.

    Hence my question: How to get the pause for melee attack?
    For muskets you can find the number under
    Code:
    TObjBase.weapon[i].pause
    but for sword / pike it's always 0.
    Is it always equal for all melee weapons?

    I've noticed that ingame-Encyclopedia doesn't have attack pause for melee units.
     
  2. Wralth

    Wralth Active Member

    Its the number of frames in their attack animation, basically.
     
  3. Przemek_kondor

    Przemek_kondor New Member

    Right, thanks - there is some magic in unit.script/_unit_ApplyAttackPause - I hope it's this one
     
  4. Wralth

    Wralth Active Member

    actually no, attack animation lengths are defined in the aaf files
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice