Legacy GM how to check depth from other object

E

EZTALES

Guest
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;
}
 
U

Ushugun

Guest
okay, then do you know what I could write instead?
If there is only once instance of obj_oilman_2 you can use
Code:
if place_meeting (x,y, obj_oilman_2) && obj_oilman_2.depth == -101;
{
image_speed = 0.1;
}
 
E

EZTALES

Guest
If there is only once instance of obj_oilman_2 you can use
Code:
if place_meeting (x,y, obj_oilman_2) && obj_oilman_2.depth == -101;
{
image_speed = 0.1;
}
keeps giving a malformed if statment, any idea why?
 
Top