ShaDoOoW wrote...
I noticed in my recent HotU gameplay that my henchmans do not swap weapons in combat. Looked into AI and the command to do that is in there and is executed, however it fails.
Lexicon doesn't know about this issue, but it seems hardcoded like henchmans cannot swap their weapons at all - they can unequip, but all calls to equip doesnt work.
So far the only solution Ive found was to RemoveHenchman and after 0.1sec AddHenchman back but thats really stupid solution.
Is this problem with all three commands: ActionEquipMostDamagingMelee/Ranged() and ActionEquipItem() ? Does the AI clear the equip action before it can be performed?
If you haven't already test this script in the OnDamaged event of an associate without any other scripts used for its events.
void main()
{
ClearAllActions(TRUE);
ActionEquipMostDamagingMelee();
ActionDoCommand(SetCommandable(TRUE));
SetCommandable(FALSE);
}
Modifié par WhiZard, 21 juillet 2012 - 04:25 .