bjorne.
Sergeant Knight
First of all. Hi.
Second of. Okey, I pretty much decided to leave the mount&blade community, thus quitting modding. Though, I allways had this thing disturbing me. I started a code, which where went to trigger when the units are told to hold fire.
I wanted them to play an animation and pretty much swap weapon.
Thing is. I had no idea of how to have a Vertex Animation being triggered. So I couldn't do it that way. So, I tried to find other ways. Now, this is what I came up with. I am sure it is not enough. And sure that it ain't good enough.
Here's the thing. I think I managed to figure out how do test the conditions (which is pretty much as the commun "if" command). yet, I couldn't find any code that would be the same as the commun "then" command.
If anyone gives me a hand with this, then I'll surely be sleeping the future nights
Second of. Okey, I pretty much decided to leave the mount&blade community, thus quitting modding. Though, I allways had this thing disturbing me. I started a code, which where went to trigger when the units are told to hold fire.
I wanted them to play an animation and pretty much swap weapon.
Thing is. I had no idea of how to have a Vertex Animation being triggered. So I couldn't do it that way. So, I tried to find other ways. Now, this is what I came up with. I am sure it is not enough. And sure that it ain't good enough.
Code:
(key_is_down, "hold fire"),
(try_begin),
(agent_has_item_equipped,":agent",itm_musket_bayonet),
(agent_is_ally, ":agent"),
(agent_is_human, ":agent"),
(try_end),
(agent_get_wielded_item,<destination>,":agent",1),
(agent_set_animation, ":agent", anim_fix_bayonet)
Here's the thing. I think I managed to figure out how do test the conditions (which is pretty much as the commun "if" command). yet, I couldn't find any code that would be the same as the commun "then" command.
If anyone gives me a hand with this, then I'll surely be sleeping the future nights