GetFactionEqual(object, object)

Are both objects in the same faction?

int GetFactionEqual(
    object oFirstObject,
    object oSecondObject = OBJECT_SELF
);

Parameters

oFirstObject

First object to compare.

oSecondObject

Second object to compare against. (Default: OBJECT_SELF)


Description

Returns TRUE if the Faction Ids of the two objects are the same.



Remarks

A great way to tell if another approaching creature is in the same faction as the calling object.


Version

1.22

See Also

categories: Get Data from Creature Functions | Reputation/Faction Functions


 author: John Shuell
 Send comments on this topic.