I programed some event function but there is some problem about ray trace. Actually, I am using ray trace from camera position to the face of camera as below. I am using only camera's pan and tilt. In your think, is 'target_pos' correct? I could found strange working that event occured on incorrect position of entity. Is it entity's bounding box problem? I made model entity using 3D MAX and the model is positioned on the origin of model editor.