GetIsEnemy

From NWN Lexicon
Revision as of 17:39, 19 February 2016 by Proleric (talk | contribs) (Remarks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



GetIsEnemy(object, object)

Determines whether a creature considers another creature an enemy.

int GetIsEnemy(
    object oTarget,
    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

Returns TRUE even if the enemy is dead (unlike GetNearestEnemy, which ignores dead enemies).

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