GetFactionBestAC(object, int)

Get the member of a faction (party) who has the highest Armor Class.

object GetFactionBestAC(
    object oFactionMember = OBJECT_SELF,
    int bMustBeVisible = TRUE
);

Parameters

oFactionMember

The object whose faction you wish to examine. (Default: OBJECT_SELF)

bMustBeVisible

Does the returned object have to be visible to the caller? (Default: TRUE)


Description

Returns the object faction (party) member with the highest armor class. If bMustBeVisible is set to TRUE then the returned object must be visible to the object calling the function.
Returns OBJECT_INVALID if oFactionMember's faction is invalid.



Remarks

Another nice Combat Oriented AI function. Use this in deciding which member of a faction should be debuffed with magic.


Version

1.22

See Also

functions: GetFactionLeastDamagedMember | GetFactionMostDamagedMember | GetFactionWorstAC
categories: Combat Information Functions | Get Data from Creature Functions | Party Functions | Reputation/Faction Functions | Targeting Functions


 author: John Shuell, editor: Jeremy Spilinek
 Send comments on this topic.