1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

lua syntax of hold_last_frame

Discussion in 'Get Help/Troubleshooting' started by daspex, May 16, 2018.

  1. Hi,

    Please could someone show the syntax of action_play with hold_last_frame option true?

    Thanks in advance.
  2. Where did you find this parameter? I have never seen it in documentation or in game code
  3. In gamelib lua
  4. Oh, I got it, SR3 function doesn't has it, I guess it stops animation but doesn't reset it to player default. I found only one example where it set to true

    Code (Lua):

        -- This will freeze the player in the animation.
        local force_play = false
        local mostly_complete_percentage = 0.9
        local stand_still = true
        local zero_movement = true
        local anim_start_nav = nil
        local anim_dest_nav = nil
        local hold_last_frame = true
        action_play( player, "m15 knockdown head", "m15 knockdown head", force_play, mostly_complete_percentage, stand_still, zero_movement, anim_dest_nav, anim_start_nav, hold_last_frame )
  5. Thanks i didn't found that in gamelib lua.Will test it. :)