Adds simple weapon logic for companions: switching to melee when close to target or when there are no arrows, and switching to a bow when far away.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
This mod adds some useful companion AI to the game, allowing companions to switch between ranged and melee as appropriate.
There are three separate logic methods:
If using a bow with no arrows in inventory, switch to an available melee weapon
If close to target and using a bow, switch to an available melee weapon
If far from target and using a melee weapon, switch to an available bow
There is other AI going on, so switches might not always be immediate.
I tried looking for how the game deals with how different melee weapon types interact with armor, but so far I'm not sure the game even differentiates weapon types when an enemy is armored. So, no melee switching logic yet.