GetFactionWorstAC(object, int)
Get the object faction member with the lowest armor class.
object GetFactionWorstAC( object oFactionMember = OBJECT_SELF, int bMustBeVisible = TRUE );
Parameters
oFactionMember
The object whose faction you wish to search through (Default: OBJECT_SELF)
bMustBeVisible
Does the returned object have to be visible to the caller? (Default: TRUE)
Description
Returns an object representing the faction (or party) member with the lowest armor class. Will only return the member with the lowest AC that is visible to the object calling the function if bMustBeVisible is set to TRUE (default).
Return OBJECT_INVALID if oFactionMember's faction is invalid.
Remarks
Again, a great function to use in your NPC Combat scripts. This one can sic your creatures on the easiest to hit target, or even use with a henchman spellcaster to determine which member of his master's party needs more protection.
Version
1.22
See Also
author: John Shuell, editor: Jeremy Spilinek
Send comments on this topic.