local pressed = 0 local input = "e" local animation = -1 function animation_finder_init(e) end function animation_finder_main(e) if g_InKey == input and pressed == 0 then animation = animation + 1 StopAnimation(e) pressed = 1 end if g_Entity[e]['animating'] == 0 then SetAnimation(animation) PlayAnimation(e) g_Entity[e]['animating'] = 1 end if g_InKey == "" then pressed = 0 end Prompt("animation number " ..animation) end function animation_finder_exit(e) end