Caba`drin said:So, here's the part where I must be missing something obvious again.
Is there a trick to getting agent_set_animation to set the animation for the player in SP?
I've been trying the following mission template trigger:
to try and get a feel for what the Native crouch animation looks like/functions like in-game. (You can only guess so much staring at a checker-board OpenBRF figure going through the motions.) But...it doesn't do a dang thing. Sure, the debug text shows up and the slots are getting set appropriately, but the animations do not change. (And from watching OpenBRF, certainly those animations have frames and such.)Code:(0, 0, 1, [(key_clicked, key_z)], [ (get_player_agent_no, ":agent"), (try_begin), (agent_slot_eq, ":agent", slot_agent_crouch, 0), (agent_get_horse, ":horse", ":agent"), (le, ":horse", 0), (display_message,"@crouch key pressed (begin)."), (agent_set_slot, ":agent", slot_agent_crouch, 1), (agent_set_animation, ":agent", "anim_stand_to_crouch"), (agent_set_walk_forward_animation,":agent","anim_walk_forward_crouch"), (else_try), (agent_slot_eq, ":agent", slot_agent_crouch, 1), (display_message,"@crouch key pressed (end)."), (agent_set_slot, ":agent", slot_agent_crouch, 0), (agent_set_animation, ":agent", "anim_crouch_to_stand", 1), (agent_set_walk_forward_animation,":agent","anim_run_forward"), (try_end), ]),
Any idea what gives?
I tried so many times before to enable low walk animation, and I failed. My code 's similar to yours. I tried to modify animation's flags on module_animations.py but as far as I can go is my character stay down after I press the crouch key. And get up again when I press it again, but the character can't move/walk in crouching mode.