You can use this for seeing when the characters are near:
Quote from: the manualIsCollidingWithChar
(Formerly known as AreCharactersColliding, which is now obsolete)
Character.IsCollidingWithChar(Character* otherChar)
Checks if the character is touching OTHERCHAR. This function just checks the baseline of both characters, so if one is standing a fair distance behind the other, it will not be marked as colliding.
Returns 1 if the characters feet are touching, 0 otherwise.
Example:
if (character[EGO].IsCollidingWithChar(cMan) == 1)
{ colliding code here }
will execute the colliding code only if the characters EGO and MAN are colliding.