GetLastPerceived

// Use this in an OnPerception script to get the object that was perceived. // * Returns OBJECT_INVALID if the caller is not a valid creature. object GetLastPerceived;