This method can be used when you want to detect if 2 entities are next to each other
In this example you get -1 if the entities are next to each other, you can change the order of the operation like in the example 2 to get the positive number 1.
<? @entity1.location.get(1) - @entity2.location.get(0) ?>
entity1: hello
entity2: bye
Input: hello bye
entity1.location = [0, 4]
entity2.location = [5, 7]
entity1.location.get(1) = 4
entity2.location.get(0) = 5
entity1.location.get(1) - entity2.location.get(0) = -1
In this example you get 1 if the entity is next to the other.
<? @entity2.location.get(0) - @entity1.location.get(1) ?>
entity1: big
entity2: sun
Input: big sun
entity1.location = [0, 2]
entity2.location = [3, 5]
entity1.location.get(1) = 2
entity2.location.get(0) = 3
entity2.location.get(0) - entity1.location.get(1) = 1