GetGoingToBeAttackedBy(object)

Determines the creature that is going to attack another creature in the current combat round.

object GetGoingToBeAttackedBy(
    object oTarget
);

Parameters

oTarget

The creature that is going to be attacked.


Description

Returns the creature that is going to attack oTarget, and OBJECT_INVALID if oTarget is not a valid creature or if oTarget isn't being attacked.



Remarks

This value is cleared out at the end of every combat round and should not be used in any case except when getting a "going to be attacked" shout from the master creature (and this creature is a henchman).


Version

1.22

See Also

categories: Combat Functions | Core AI Functions | Henchmen/Familiars/Summoned Functions


 author: Tom Cassiotis