Yes, it will work!
But now the poor keverek focuses solely on attacking the door, even as I beat him silly with an axe.
Next I need to clear his combat overrides so that creature fights back on person who just attacked him.
SetCombatOverrides(oKev, oDoor, OVERRIDE_ATTACK_RESULT_HIT_SUCCESSFUL, -1,-1,-1,-1,TRUE, TRUE, TRUE, TRUE);
In my case I made the door PLOT, so I don’t care so much about what some of these arguments are, I just want keverek to pound on the door.
One thing, SetCombatOverrides has another parameter in there, it’s between oTarget and nOnHandAttacks and defines how you want the attacks to happen, to hit, to crit, to be parried, etc. I believe it is using OVERRIDE_ATTACK_RESULT* constants. It’s in the description but not in the prototype
void SetCombatOverrides(object oCreature,object oTarget,int nOnHandAttacks,int nOffHandAttacks,int nMinDamage,int nMaxDamage,int bSuppressBroadcastAOO,int bSuppressMakeAOO,int bIgnoreTargetReaction,int bSuppressFeedbackText )