How to change the actions of the unit?

How to change the actions of the unit? For example, changing the rider to a sword shield attack, And how to extract the character model of cavalry separately to turn it into infantry? Are mounts and character models bound?