Hi Toon!

How about something like this?

Code:

//
// This code would go near the bottom of example_move. It is assumed
// that there is an entity* called player.
//


//
// The _PF_TARGET_IN_SIGHT skill of the monster will be set to "on" once there's
// a clear shot at the player.
//

if (my._PF_TARGET_IN_SIGHT)
{
trace_mode = IGNORE_ME + IGNORE_PASSABLE + USE_BOX;
trace(my.x, player.x);
}