Difference between revisions of "GetGoingToBeAttackedBy"

From NWN Lexicon
Jump to: navigation, search
(Created page with " =GetGoingToBeAttackedBy(object)= Determines the creature that is going to attack another creature in the current combat round. object  GetGoingToB...")
 
Line 7: Line 7:
 
Determines the creature that is going to attack another creature in the current combat round.
 
Determines the creature that is going to attack another creature in the current combat round.
  
 +
<nwscript>
 
  [[object | object ]] GetGoingToBeAttackedBy(
 
  [[object | object ]] GetGoingToBeAttackedBy(
 
      [[object | object ]] oTarget
 
      [[object | object ]] oTarget
 
  );
 
  );
 +
</nwscript>
  
 
====Parameters====
 
====Parameters====

Revision as of 20:40, 25 August 2012



GetGoingToBeAttackedBy(object)

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

 [[object | object ]] GetGoingToBeAttackedBy(
     [[object | 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



 author: Tom Cassiotis