Legacy GM how to check depth from other object

EZTALES

Member
hey guys,
having a error trying to check the depth from another object, says for an error "unexpected epression" code is below. anyone know why?
thanks
-EZ
Code:
if place_meeting (x,y, obj_oilman_2) && with obj_oilman_2 depth = -101;
{
image_speed = 0.1;
}
 
Top