RelationTo

Check the relation of a specified object.

Syntax

RelationTo:[object] -- Returns the "Relation" towards this object, see Relation page for more information

Example


// If the relation to our caller is of enemy, target them!
IfAttr "RelationTo:caller == Relation:enemy Block begin"
    TargetCaller 1
Block end