Equip weapon issue

This shouldn’t be hard, I must be missing something, right? I set up a script to jump several NPCs into a new area. Along the way, I ran ActionEquipMostDamagingMelee() just so they have a weapon equipped when they arrive, since they won’t beforehand. Except they’re not equipping a weapon. I checked to make sure they had one in their inventory, and that they have the correct feats to equip it.

When I looked up the function in the lexicon, there’s note about not calling this function outside of the OnCombatRoundEnd event, which is something I did. I assigned it as a command from an Area OnEnter script. Is that just not allowed? It doesn’t make sense to me that you would HAVE to set up an OnUserDefined script just for something this simple…

ActionEquipMostDamagingMelee() works in almost all situations.

Check that no script is clearing actions - the most likely is the henchman AI which you can override using SetCommandable (see Example Note 3 in the Lexicon).

Sometimes the area is not fully initialised when the OnEnter event fires. You can use that event, but sometimes it helps to delay the command briefly (about 2 seconds).