Difference between revisions of "GetIsEnemy"

From NWN Lexicon
Jump to: navigation, search
(Created page with " =GetIsEnemy(object, object)= Determines whether a creature considers another creature an enemy. int  GetIsEnemy(      object  oTar...")
 
Line 7: Line 7:
 
Determines whether a creature considers another creature an enemy.
 
Determines whether a creature considers another creature an enemy.
  
 +
<nwscript>
 
  [[int | int ]] GetIsEnemy(
 
  [[int | int ]] GetIsEnemy(
 
      [[object | object ]] oTarget,
 
      [[object | object ]] oTarget,
 
      [[object | object ]] oSource = OBJECT_SELF
 
      [[object | object ]] oSource = OBJECT_SELF
 
  );
 
  );
 +
</nwscript>
  
 
====Parameters====
 
====Parameters====

Revision as of 20:40, 25 August 2012



GetIsEnemy(object, object)

Determines whether a creature considers another creature an enemy.

 [[int | int ]] GetIsEnemy(
     [[object | object ]] oTarget,
     [[object | object ]] oSource = OBJECT_SELF
 );

Parameters

oTarget

The creature whose enemy status is to be checked.

oSource

The creature whose opinion will be queried. (Default: OBJECT_SELF)


Description

Returns TRUE if oSource considers oTarget as an enemy.



Remarks

This function considers faction feeling as well as personal reputation between the two creatures.


Version

1.22

See Also

functions: 

GetNearestSeenOrHeardEnemy



 author: Tom Cassiotis, editor: Kristian Markon