Unity of looks like this:
// detects if other transform is behind this object
var other : Transform;
function Update() {
if (other) {
var forward = transform.TransformDirection(Vector3.forward);
var toOther = other.position - transform.position;
if (Vector3.Dot(forward,toOther) < 0)
print ("The other transform is behind me!");
}
}[/code:23r2e767]
This is how to do it in Construct program?