lua syntax of hold_last_frame

Hi,

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

Thanks in advance.
 
In gamelib lua
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

m15_1.lua
Code:
    -- 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 )
 
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

m15_1.lua
Code:
    -- 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 )
Thanks i didn't found that in gamelib lua.Will test it. :)
 
Back
Top