morrowind- Here's how I would do it, if I understand what you want.
I would use the water priority (3) to represent the area too close to the object. (It doesn't have to actually be water.)Then, if the ego is standing in the "water" area when it throws the thing, it would bounce back and hit him.
The green signal line only works if the ego is touching it at the time, so outlining the area with it wouldn't work if the ego was inside the area but not touching the border.
So, if you have water represent the area, your code, I guess, would look something like this:
if(isset(f235)) {
if(isset(ego_on_water)) { // ego standing in the water area
print("oww my eye");
}
}
Without knowing exactly what all is going on in the game at the time, I can't tell if that's exactly right. For instance, if you don't reset f235, it's going to keep repeating "oww my eye" since the ego will still be standing in the water.